From: Rob Church Date: Wed, 18 Jan 2006 16:17:15 +0000 (+0000) Subject: Remove gratuitous extract( ) from getSQL -> might as well use the direct function X-Git-Tag: 1.6.0~485 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=e5db8ebf57201537b2cf6a1c773493a3bbf975e5;p=lhc%2Fweb%2Fwiklou.git Remove gratuitous extract( ) from getSQL -> might as well use the direct function --- diff --git a/includes/SpecialListredirects.php b/includes/SpecialListredirects.php index a22e94dc39..c1e5ad69be 100644 --- a/includes/SpecialListredirects.php +++ b/includes/SpecialListredirects.php @@ -25,8 +25,7 @@ class ListredirectsPage extends QueryPage { function getSQL() { $dbr =& wfGetDB( DB_SLAVE ); - extract( $dbr->tableNames( 'page' ) ); - return( 'SELECT page_title AS title, page_namespace AS namespace, page_namespace AS value FROM ' . $page . ' WHERE page_is_redirect = 1' ); + return( 'SELECT page_title AS title, page_namespace AS namespace, page_namespace AS value FROM ' . $dbr->tableName( 'page' ) . ' WHERE page_is_redirect = 1' ); } function formatResult( $skin, $result ) {