Index: trunk/extensions/intersection/DynamicPageList.php |
— | — | @@ -133,7 +133,8 @@ |
134 | 134 | $arg = trim( $paramField[1] ); |
135 | 135 | switch ( $type ) { |
136 | 136 | case 'category': |
137 | | - $title = Title::newFromText( |
| 137 | + $title = Title::makeTitleSafe( |
| 138 | + NS_CATEGORY, |
138 | 139 | $parser->transformMsg( $arg, $poptions ) |
139 | 140 | ); |
140 | 141 | if( is_null( $title ) ) { |
— | — | @@ -142,7 +143,8 @@ |
143 | 144 | $categories[] = $title; |
144 | 145 | break; |
145 | 146 | case 'notcategory': |
146 | | - $title = Title::newFromText( |
| 147 | + $title = Title::makeTitleSafe( |
| 148 | + NS_CATEGORY, |
147 | 149 | $parser->transformMsg( $arg, $poptions ) |
148 | 150 | ); |
149 | 151 | if( is_null( $title ) ) { |