Fixed redirects, use getCurContentFields instead of getContentFields
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 10 Jul 2004 09:06:24 +0000 (09:06 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 10 Jul 2004 09:06:24 +0000 (09:06 +0000)
includes/Article.php

index 4a905e6..1638141 100644 (file)
@@ -312,6 +312,7 @@ class Article {
 
        }
 
+       # Return an array of the columns of the "cur"-table
        function &getCurContentFields() {
                global $wgArticleCurContentFields;
                if ( !$wgArticleCurContentFields ) {
@@ -321,6 +322,7 @@ class Article {
                return $wgArticleCurContentFields;
        }
 
+       # Return an array of the columns of the "old"-table
        function &getOldContentFields() {
                global $wgArticleOldContentFields;
                if ( !$wgArticleOldContentFields ) {
@@ -388,7 +390,7 @@ class Article {
                                                }
                                                $rid = $rt->getArticleID();
                                                if ( 0 != $rid ) {
-                                                       $redirRow = $dbr->getArray( 'cur', $this->getContentFields(), array( 'cur_id' => $rid ), $fname );
+                                                       $redirRow = $dbr->getArray( 'cur', $this->getCurContentFields(), array( 'cur_id' => $rid ), $fname );
 
                                                        if ( $redirRow !== false ) {
                                                                $this->mRedirectedFrom = $this->mTitle->getPrefixedText();