r105976 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105975‎ | r105976 | r105977 >
Date:04:04, 13 December 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
fix deprecated method usage
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -866,7 +866,7 @@
867867
868868 $mp = $this->msg( 'mainpage' )->escaped();
869869 $mptitle = Title::newMainPage();
870 - $url = ( is_object( $mptitle ) ? $mptitle->escapeLocalURL() : '' );
 870+ $url = ( is_object( $mptitle ) ? htmlspecialchars( $mptitle->getLocalURL() ) : '' );
871871
872872 $logourl = $this->getLogo();
873873 $s = "<a href='{$url}'><img{$a} src='{$logourl}' alt='[{$mp}]' /></a>";

Status & tagging log