Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -840,17 +840,16 @@ |
841 | 841 | list( $page, $pagenum ) = $item; |
842 | 842 | $pp[] = $page; |
843 | 843 | } |
844 | | - $pagelist = "'" . implode( "', '", $pp ) . "'"; |
845 | 844 | $page_ns_index = MWNamespace::getCanonicalIndex( strtolower( $page_namespace ) ); |
846 | 845 | $dbr = wfGetDB( DB_SLAVE ); |
847 | | - $encCat = $dbr->addQuotes( str_replace( ' ' , '_' , wfMsgForContent( 'proofreadpage_quality0_category' ) ) ); |
| 846 | + $encCat = $dbr->strencode( str_replace( ' ' , '_' , wfMsgForContent( 'proofreadpage_quality0_category' ) ) ); |
848 | 847 | $res = $dbr->select( |
849 | 848 | array( 'page', 'categorylinks' ), |
850 | 849 | array( 'page_title' ), |
851 | 850 | array( |
852 | | - "page_title IN ( $pagelist )", |
853 | | - "cl_to=$encCat", |
854 | | - "page_namespace=$page_ns_index" |
| 851 | + 'page_title' => $pp, |
| 852 | + 'cl_to' => $encCat, |
| 853 | + 'page_namespace' => $page_ns_index |
855 | 854 | ), |
856 | 855 | __METHOD__, |
857 | 856 | null, |