summaryrefslogtreecommitdiff
path: root/maintenance/updateArticleCount.inc.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
committerPierre Schmitz <pierre@archlinux.de>2007-05-16 20:58:53 +0000
commitcecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch)
tree17266aa237742640aabee7856f0202317a45d540 /maintenance/updateArticleCount.inc.php
parent0bac06c301f2a83edb0236e4c2434da16848d549 (diff)
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert kleine Korrekturen am Design
Diffstat (limited to 'maintenance/updateArticleCount.inc.php')
-rw-r--r--maintenance/updateArticleCount.inc.php7
1 files changed, 3 insertions, 4 deletions
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 <robchur@gmail.com>
*/
@@ -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 ) " .