From: Yusuke Matsubara Date: Wed, 18 Feb 2015 14:00:21 +0000 (+0900) Subject: Parse "retrievedfrom" and "lastmodifiedat" X-Git-Tag: 1.31.0-rc.0~12377^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=e24b686218e5da2e495365240c9a0ec74b0ebbc6;p=lhc%2Fweb%2Fwiklou.git Parse "retrievedfrom" and "lastmodifiedat" The two system messages should allow wikitext. The messages have been customized on many wikis to include additional links and other HTML features. Previously they allowed raw HTML. Follows up Ifd696ecd and Ibcc1b499. Bug: T86702 Bug: T87269 Change-Id: I6e67906a8c2a06c63620b0fb49226335ccb84650 --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 6cc139bfb5..3d45d7d445 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -646,7 +646,7 @@ abstract class Skin extends ContextSource { return $this->msg( 'retrievedfrom' ) ->rawParams( '' . $url . '' ) - ->escaped(); + ->parse(); } /** @@ -863,7 +863,7 @@ abstract class Skin extends ContextSource { if ( $timestamp ) { $d = $this->getLanguage()->userDate( $timestamp, $this->getUser() ); $t = $this->getLanguage()->userTime( $timestamp, $this->getUser() ); - $s = ' ' . $this->msg( 'lastmodifiedat', $d, $t )->escaped(); + $s = ' ' . $this->msg( 'lastmodifiedat', $d, $t )->parse(); } else { $s = ''; }