From: Domas Mituzas Date: Sat, 14 Jan 2006 03:10:42 +0000 (+0000) Subject: save ArticleID when it is around, saves one query :-) X-Git-Tag: 1.6.0~560 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=5c033c37c5c22482ca90b63957d7ec969c166325;p=lhc%2Fweb%2Fwiklou.git save ArticleID when it is around, saves one query :-) --- diff --git a/includes/Article.php b/includes/Article.php index 6a1c0e3132..82891fc7bc 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -91,11 +91,8 @@ class Article { } else { return $rt->getFullURL(); } - } elseif( $rt->exists() ) { - // Internal redirects can be handled relatively gracefully. - // We may have to change to another Article subclass, though. - return $rt; - } + } + return $rt; } } @@ -427,6 +424,7 @@ class Article { * @access private */ function loadPageData( $data ) { + $this->mTitle->mArticleID = $data->page_id; $this->mTitle->loadRestrictions( $data->page_restrictions ); $this->mTitle->mRestrictionsLoaded = true;