From cecb985bee3bdd252e1b8dc0bd500b37cd52be01 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 16 May 2007 20:58:53 +0000 Subject: Aktualisierung auf MediaWiki 1.10.0 Plugins angepasst und verbessert kleine Korrekturen am Design --- maintenance/updateArticleCount.inc.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'maintenance/updateArticleCount.inc.php') diff --git a/maintenance/updateArticleCount.inc.php b/maintenance/updateArticleCount.inc.php index 7eaea749..d4e2a9e8 100644 --- a/maintenance/updateArticleCount.inc.php +++ b/maintenance/updateArticleCount.inc.php @@ -3,8 +3,7 @@ /** * Support class for the updateArticleCount.php maintenance script * - * @package MediaWiki - * @subpackage Maintenance + * @addtogroup Maintenance * @author Rob Church */ @@ -16,7 +15,7 @@ class ArticleCounter { function ArticleCounter() { global $wgContentNamespaces; $this->namespaces = $wgContentNamespaces; - $this->dbr =& wfGetDB( DB_SLAVE ); + $this->dbr = wfGetDB( DB_SLAVE ); } /** @@ -37,7 +36,7 @@ class ArticleCounter { * @return string */ function makeSql() { - extract( $this->dbr->tableNames( 'page', 'pagelinks' ) ); + list( $page, $pagelinks ) = $this->dbr->tableNamesN( 'page', 'pagelinks' ); $nsset = $this->makeNsSet(); return "SELECT DISTINCT page_namespace,page_title FROM $page,$pagelinks " . "WHERE pl_from=page_id and page_namespace IN ( $nsset ) " . -- cgit v1.2.2