Index: trunk/extensions/FlaggedRevs/specialpages/UnreviewedPages_body.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | $defaultNS = empty($wgFlaggedRevsNamespaces) ? 0 : $wgFlaggedRevsNamespaces[0]; |
31 | 31 | $namespace = $wgRequest->getIntOrNull( 'namespace', $defaultNS ); |
32 | 32 | $category = trim( $wgRequest->getVal( 'category' ) ); |
33 | | - $catTitle = Title::newFromText( $category ); |
| 33 | + $catTitle = Title::makeTitleSafe( NS_CATEGORY, $category ); |
34 | 34 | $category = is_null($catTitle) ? '' : $catTitle->getText(); |
35 | 35 | $level = $wgRequest->getInt( 'level' ); |
36 | 36 | $hideRedirs = $wgRequest->getBool( 'hideredirs', true ); |
Index: trunk/extensions/FlaggedRevs/specialpages/OldReviewedPages_body.php |
— | — | @@ -20,7 +20,7 @@ |
21 | 21 | $this->namespace = $wgRequest->getIntOrNull( 'namespace' ); |
22 | 22 | $this->level = $wgRequest->getInt( 'level', -1 ); |
23 | 23 | $this->category = trim( $wgRequest->getVal( 'category' ) ); |
24 | | - $catTitle = Title::newFromText( $this->category ); |
| 24 | + $catTitle = Title::makeTitleSafe( NS_CATEGORY, $this->category ); |
25 | 25 | $this->category = is_null($catTitle) ? '' : $catTitle->getText(); |
26 | 26 | $this->size = $wgRequest->getIntOrNull( 'size' ); |
27 | 27 | $this->watched = $wgRequest->getCheck( 'watched' ); |