From: Daniel Friesen Date: Tue, 8 Feb 2011 01:15:50 +0000 (+0000) Subject: Fix bug slightly caused by moving legacy code out of the Skin class. The Article... X-Git-Tag: 1.31.0-rc.0~32129 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=b4d811d65956fb111dc2496574301bced0f03d04;p=lhc%2Fweb%2Fwiklou.git Fix bug slightly caused by moving legacy code out of the Skin class. The Article class was calling the legacy Skin::historyLink in a very ugly way (ie: having it's own mTitle, but relying on whatever title just happened to be set on the skin that it grabbed). --- diff --git a/includes/Article.php b/includes/Article.php index 666b2ddb65..e13afc90f3 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2911,7 +2911,10 @@ class Article { //FIXME: lego $wgOut->addHTML( '' . wfMsgExt( 'historywarning', array( 'parseinline' ), $wgLang->formatNum( $revisions ) ) . - wfMsgHtml( 'word-separator' ) . $skin->historyLink() . + wfMsgHtml( 'word-separator' ) . $skin->link( $this->mTitle, + wfMsgHtml( 'history' ), + array( 'rel' => 'archives' ), + array( 'action' => 'history' ) ) . '' );