Index: trunk/phase3/includes/specials/SpecialWantedtemplates.php |
— | — | @@ -73,8 +73,6 @@ |
74 | 74 | $skin->makeLinkObj( $nt, htmlspecialchars( $text ) ) : |
75 | 75 | $skin->makeBrokenLinkObj( $nt, htmlspecialchars( $text ) ); |
76 | 76 | |
77 | | - $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), |
78 | | - $wgLang->formatNum( $result->value ) ); |
79 | 77 | return wfSpecialList( |
80 | 78 | $plink, |
81 | 79 | $this->makeWlhLink( $nt, $skin, $result ) |
Index: trunk/phase3/includes/specials/SpecialWantedfiles.php |
— | — | @@ -72,10 +72,27 @@ |
73 | 73 | $skin->makeLinkObj( $nt, htmlspecialchars( $text ) ) : |
74 | 74 | $skin->makeBrokenLinkObj( $nt, htmlspecialchars( $text ) ); |
75 | 75 | |
76 | | - $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), |
77 | | - $wgLang->formatNum( $result->value ) ); |
78 | | - return wfSpecialList($plink, $nlinks); |
| 76 | + return wfSpecialList( |
| 77 | + $plink, |
| 78 | + $this->makeWlhLink( $nt, $skin, $result ) |
| 79 | + ); |
79 | 80 | } |
| 81 | + |
| 82 | + /** |
| 83 | + * Make a "what links here" link for a given title |
| 84 | + * |
| 85 | + * @param Title $title Title to make the link for |
| 86 | + * @param Skin $skin Skin to use |
| 87 | + * @param object $result Result row |
| 88 | + * @return string |
| 89 | + */ |
| 90 | + private function makeWlhLink( $title, $skin, $result ) { |
| 91 | + global $wgLang; |
| 92 | + $wlh = SpecialPage::getTitleFor( 'Whatlinkshere' ); |
| 93 | + $label = wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ), |
| 94 | + $wgLang->formatNum( $result->value ) ); |
| 95 | + return $skin->link( $wlh, $label, array(), array( 'target' => $title->getPrefixedText() ) ); |
| 96 | + } |
80 | 97 | } |
81 | 98 | |
82 | 99 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -218,6 +218,7 @@ |
219 | 219 | * (bug 14414) maintenance/updateSpecialPages.php no longer throws error with |
220 | 220 | PostgreSQL |
221 | 221 | * (bug 17546) Correct Tongan language native name is "lea faka-Tonga" |
| 222 | +* (bug 17621) Special:WantedFiles has no link to Special:Whatlinkshere |
222 | 223 | |
223 | 224 | == API changes in 1.15 == |
224 | 225 | * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions |