From: Platonides Date: Wed, 16 Feb 2011 21:30:54 +0000 (+0000) Subject: Fix the issue where all links on Special:Contributions where marked as stubs (NS_MAIN... X-Git-Tag: 1.31.0-rc.0~31963 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=a22d7b6e5f615eba05259402eaa28eed2d0d5925;p=lhc%2Fweb%2Fwiklou.git Fix the issue where all links on Special:Contributions where marked as stubs (NS_MAIN pages, for users with a stub threshold) broken since r63584. resetArticleId() is clearing the right data set by Title::newFromRow() and placing just the id, which in turn avoids to lookup the other items. This was already done in 1.16 (since r46179, it was useful until r46181) but resetArticleID() did not reset everything (r63584 change) and so the bug wasn't present there. --- diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index ffd7e1429a..10dbb94cac 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -637,7 +637,6 @@ class ContribsPager extends ReverseChronologicalPager { $classes = array(); $page = Title::newFromRow( $row ); - $page->resetArticleId( $row->rev_page ); // use process cache $link = $sk->link( $page, htmlspecialchars( $page->getPrefixedText() ),