Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -200,7 +200,7 @@ |
201 | 201 | */ |
202 | 202 | static function getAllForms() { |
203 | 203 | $dbr = wfGetDB( DB_SLAVE ); |
204 | | - $res = $dbr->select( $dbr->tableNames( 'page' ), |
| 204 | + $res = $dbr->select( 'page', |
205 | 205 | 'page_title', |
206 | 206 | array( 'page_namespace' => SF_NS_FORM, |
207 | 207 | 'page_is_redirect' => false ), |
— | — | @@ -373,7 +373,7 @@ |
374 | 374 | $substring = str_replace( "'", "\'", $substring ); |
375 | 375 | $conditions .= " AND (LOWER(CONVERT(`page_title` USING utf8)) LIKE '$substring%' OR LOWER(CONVERT(`page_title` USING utf8)) LIKE '%\_$substring%')"; |
376 | 376 | } |
377 | | - $res = $db->select( $db->tableNames( 'page' ), |
| 377 | + $res = $db->select( 'page', |
378 | 378 | 'page_title', |
379 | 379 | $conditions, __METHOD__, |
380 | 380 | array( 'ORDER BY' => 'page_title' ) ); |