From ffb4df9ff54013c469cba9fed7de3cde9ac432cf Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sat, 10 Jul 2004 09:06:24 +0000 Subject: [PATCH] Fixed redirects, use getCurContentFields instead of getContentFields --- includes/Article.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 4a905e6bcf..1638141b5a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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(); -- 2.20.1