From: Rob Church Date: Thu, 5 Jan 2006 14:50:35 +0000 (+0000) Subject: * (bug 4334) Add "watch" links to Special:Unwatchedpages X-Git-Tag: 1.6.0~757 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=6ec29b3bf5880e6ee51e2a2fc5981dc577999053;p=lhc%2Fweb%2Fwiklou.git * (bug 4334) Add "watch" links to Special:Unwatchedpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f7624b0550..46c0f89c3a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -405,6 +405,7 @@ fully support the editing toolbar, but was found to be too confusing. Special:Export form, 'exportnohistory' message to translate live hack. * (bug 4453) fix for __TOC__ dollar-number breakage * Maintenance script to delete unused user accounts +* (bug 4334) Add "watch" links to Special:Unwatchedpages === Caveats === diff --git a/includes/SpecialUnwatchedpages.php b/includes/SpecialUnwatchedpages.php index 43b712e101..d37ce07b31 100644 --- a/includes/SpecialUnwatchedpages.php +++ b/includes/SpecialUnwatchedpages.php @@ -48,8 +48,9 @@ class UnwatchedpagesPage extends QueryPage { $text = $wgContLang->convert( $nt->getPrefixedText() ); $plink = $skin->makeKnownLink( $nt->getPrefixedText(), htmlspecialchars( $text ) ); + $wlink = $skin->makeKnownLinkObj( $nt, '(' . wfMsg( 'watch' ) . ')', 'action=watch' ); - return $plink; + return $plink . ' ' . $wlink; } }