For the maintenance/ directory files:
[lhc/web/wiklou.git] / maintenance / updateArticleCount.inc.php
index 7eaea74..328b111 100644 (file)
@@ -37,7 +37,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 ) " .