Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -1327,7 +1327,6 @@ |
1328 | 1328 | */ |
1329 | 1329 | function update_pr_index( $index, $deletedpage = null ) { |
1330 | 1330 | $page_namespace = $this->page_namespace; |
1331 | | - $index_namespace = $this->index_namespace; |
1332 | 1331 | $page_ns_index = MWNamespace::getCanonicalIndex( strtolower( $page_namespace ) ); |
1333 | 1332 | if ( $page_ns_index == null ) { |
1334 | 1333 | return; |
— | — | @@ -1337,6 +1336,8 @@ |
1338 | 1337 | $index_id = $index->getID(); |
1339 | 1338 | $dbr = wfGetDB( DB_SLAVE ); |
1340 | 1339 | |
| 1340 | + $n = 0; |
| 1341 | + |
1341 | 1342 | // read the list of pages |
1342 | 1343 | $pages = array(); |
1343 | 1344 | list( $links, $params, $attributes ) = $this->parse_index( $index_title ); |