From aa127daa2de6b1588ad9b29fc3a609aa83c9e0a0 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 14 Jan 2006 04:35:43 +0000 Subject: [PATCH] Revert Domas's last checkin, it broke tabs on redirects. Please test before checkin! --- includes/Article.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 82891fc7bc..6a1c0e3132 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -91,8 +91,11 @@ class Article { } else { return $rt->getFullURL(); } - } - return $rt; + } elseif( $rt->exists() ) { + // Internal redirects can be handled relatively gracefully. + // We may have to change to another Article subclass, though. + return $rt; + } } } @@ -424,7 +427,6 @@ class Article { * @access private */ function loadPageData( $data ) { - $this->mTitle->mArticleID = $data->page_id; $this->mTitle->loadRestrictions( $data->page_restrictions ); $this->mTitle->mRestrictionsLoaded = true; -- 2.20.1