Parse "retrievedfrom" and "lastmodifiedat"
authorYusuke Matsubara <whym@whym.org>
Wed, 18 Feb 2015 14:00:21 +0000 (23:00 +0900)
committerWhym <whym@whym.org>
Wed, 18 Feb 2015 14:10:30 +0000 (14:10 +0000)
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

includes/skins/Skin.php

index 6cc139b..3d45d7d 100644 (file)
@@ -646,7 +646,7 @@ abstract class Skin extends ContextSource {
 
                return $this->msg( 'retrievedfrom' )
                        ->rawParams( '<a dir="ltr" href="' . $url. '">' . $url . '</a>' )
-                       ->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 = '';
                }