Change a few hardcoded select() parameters (one of which was actually incorrect)...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 25 Jul 2008 19:36:13 +0000 (19:36 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 25 Jul 2008 19:36:13 +0000 (19:36 +0000)
includes/Article.php

index aee5463..ef1cf86 100644 (file)
@@ -3278,7 +3278,7 @@ class Article {
                $res = $dbr->select( array( 'templatelinks' ),
                        array( 'tl_namespace', 'tl_title' ),
                        array( 'tl_from' => $id ),
-                       'Article:getUsedTemplates' );
+                       __METHOD__ );
                if ( false !== $res ) {
                        if ( $dbr->numRows( $res ) ) {
                                while ( $row = $dbr->fetchObject( $res ) ) {
@@ -3308,7 +3308,7 @@ class Article {
                        array( 'cl_to' ),
                        array( 'cl_from' => $id, 'pp_page=page_id', 'pp_propname' => 'hiddencat',
                                'page_namespace' => NS_CATEGORY, 'page_title=cl_to'),
-                       'Article:getHiddenCategories' );
+                       __METHOD__ );
                if ( false !== $res ) {
                        if ( $dbr->numRows( $res ) ) {
                                while ( $row = $dbr->fetchObject( $res ) ) {
@@ -3406,7 +3406,7 @@ class Article {
                        $res = $dbr->select( array( 'templatelinks' ),
                                array( 'tl_namespace', 'tl_title' ),
                                array( 'tl_from' => $id ),
-                               'Article:getUsedTemplates' );
+                               __METHOD__ );
 
                        global $wgContLang;