Index: trunk/extensions/StrategyWiki/ActiveStrategy/ActiveStrategy_body.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | 'page_id', |
11 | 11 | 'page_namespace', |
12 | 12 | 'page_title', |
13 | | - "substring_index(page_title, '/', -1) AS tf_name" |
| 13 | + "substring_index(page_title, '/', 2) AS tf_name" |
14 | 14 | ), |
15 | 15 | array( |
16 | 16 | 'page_namespace' => 0, |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | |
26 | 26 | $title = Title::newFromText( $taskForce ); |
27 | 27 | $text = $wgContLang->convert( $title->getPrefixedText() ); |
| 28 | + $text = substr( $text, strpos($text, '/') + 1 ); |
28 | 29 | $pageLink = $skin->linkKnown( $title, $text ); |
29 | 30 | $colors = null; |
30 | 31 | $color = null; |
— | — | @@ -146,7 +147,7 @@ |
147 | 148 | |
148 | 149 | foreach( $taskForces as $row ) { |
149 | 150 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
150 | | - $memberCount[$row->title] = |
| 151 | + $memberCount[$row->tf_name] = |
151 | 152 | self::getMemberCount( $title->getPrefixedText() ); |
152 | 153 | } |
153 | 154 | |