Index: trunk/extensions/HelpCommons/HelpCommons.php |
— | — | @@ -57,7 +57,12 @@ |
58 | 58 | foreach ( $urls as $helpwiki ) { |
59 | 59 | if ( $wgLanguageCode == "$language" && $wgDBname != $helpwiki ) { |
60 | 60 | $dbr = wfGetDB( DB_SLAVE, array(), $helpwiki ); |
61 | | - $page = $dbr->query( 'SELECT page_title, page_namespace, page_latest FROM page WHERE page_namespace = 12 AND page_title = '.$dbr->addQuotes($title) ); |
| 61 | + $page = $dbr->select( |
| 62 | + 'page', |
| 63 | + array( 'page_title', 'page_namespace', 'page_latest' ), |
| 64 | + array( 'page_namespace' => 12, 'page_title' => $title ), |
| 65 | + __METHOD__ |
| 66 | + ); |
62 | 67 | $page = $dbr->fetchObject( $page ); |
63 | 68 | } |
64 | 69 | } |