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