From: Brion Vibber Date: Thu, 29 Jan 2009 18:00:55 +0000 (+0000) Subject: Partial revert of r45778 and friends "(bug 15936) New page's patrol button should... X-Git-Tag: 1.31.0-rc.0~43132 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=2630350feccb4f9f56773a3c7031c9b63210869b;p=lhc%2Fweb%2Fwiklou.git Partial revert of r45778 and friends "(bug 15936) New page's patrol button should always be visible" The permission & patrolled checks on every view seem to be a performance problem. Have backed this out live; backing it out in SVN until resolved. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fc8fceb49d..a8ae408d21 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -85,7 +85,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN LanguageConverter class) * (bug 17054) Added more descriptive errors in Special:RevisionDelete * (bug 11527) Diff on page with one revision shows "Next" link to same diff -* (bug 15936) New page's patrol button should always be visible * (bug 8065) Fix summary forcing for new pages * (bug 10569) redirects to Special:Mypage and Special:Mytalk are no longer allowed by default. Change $wgInvalidRedirectTargets to re-enable. diff --git a/includes/Article.php b/includes/Article.php index 4bbf2e9a75..bf10343ab5 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -991,19 +991,6 @@ class Article { $wgOut->addWikiMsg('anontalkpagetext'); } - # Only diffs and new page links from RC give rcid params, so if - # we are just viewing the page normally with no rcid, try to find it. - # This is more convenient for users. - if( $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) { - if( empty($rcid) ) { - $firstRev = $this->mTitle->getFirstRevision(); - $rcid = $firstRev ? $firstRev->isUnpatrolled() : 0; - } else { - $rc = RecentChange::newFromId( $rcid ); - // Already patrolled? - $rcid = is_object($rc) && !$rc->getAttribute('rc_patrolled') ? $rcid : 0; - } - } # If we have been passed an &rcid= parameter, we want to give the user a # chance to mark this new article as patrolled. if( !empty($rcid) && $this->mTitle->exists() && $this->mTitle->quickUserCan('patrol') ) {