Index: trunk/extensions/ProofreadPage/ProofreadPage.php |
— | — | @@ -1180,6 +1180,7 @@ |
1181 | 1181 | |
1182 | 1182 | $index_title = $index->mTitle; |
1183 | 1183 | $index_id = $index->getID(); |
| 1184 | + $dbr = wfGetDB( DB_SLAVE ); |
1184 | 1185 | |
1185 | 1186 | //read the list of pages |
1186 | 1187 | $pages = array(); |
— | — | @@ -1199,12 +1200,11 @@ |
1200 | 1201 | } else { |
1201 | 1202 | $n = count($links[1]); |
1202 | 1203 | for ( $i = 0; $i < $n; $i++ ) { |
1203 | | - $page = str_replace( ' ' , '_' , $links[1][$i] ); |
| 1204 | + $page = $dbr->strencode( str_replace( ' ' , '_' , $links[1][$i] ) ); |
1204 | 1205 | if($page != $deletedpage) array_push( $pages, $page ); |
1205 | 1206 | } |
1206 | 1207 | } |
1207 | 1208 | |
1208 | | - $dbr = wfGetDB( DB_SLAVE ); |
1209 | 1209 | $catlinks = $dbr->tableName( 'categorylinks' ); |
1210 | 1210 | $page = $dbr->tableName( 'page' ); |
1211 | 1211 | $pagelist = "'".implode( "', '", $pages)."'"; |