X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkinLegacy.php;h=4a1c6995129fb90bd95fe4c82930cfd9ac76e695;hb=e7888d8f12110decc9f0435193f0cd222eaae5a9;hp=e1ec897d85e56c7a33d3a4967c7fd4893c0c478b;hpb=f2e6488dd8f00e9549e352f91bc02bd1be50ad11;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SkinLegacy.php b/includes/SkinLegacy.php index e1ec897d85..4a1c699512 100644 --- a/includes/SkinLegacy.php +++ b/includes/SkinLegacy.php @@ -95,7 +95,7 @@ class LegacyTemplate extends BaseTemplate { } /** - * This will be called immediately after the tag. Split into + * This will be called immediately after the "" tag. Split into * two functions to make it easier to subclass. * @return string */ @@ -159,8 +159,8 @@ class LegacyTemplate extends BaseTemplate { } /** - * This gets called shortly before the tag. - * @return String HTML to be put before + * This gets called shortly before the "" tag. + * @return String HTML to be put before "" */ function afterContent() { return $this->doAfterContent(); @@ -446,13 +446,13 @@ class LegacyTemplate extends BaseTemplate { if ( $wgOut->isArticleRelated() ) { if ( $title->getNamespace() == NS_FILE ) { - $name = $title->getDBkey(); $image = wfFindFile( $title ); if ( $image ) { - $link = htmlspecialchars( $image->getURL() ); - $style = Linker::getInternalLinkAttributes( $link, $name ); - $s[] = "{$name}"; + $href = $image->getURL(); + $s[] = Html::element( 'a', array( 'href' => $href, + 'title' => $href ), $title->getText() ); + } } } @@ -638,7 +638,7 @@ class LegacyTemplate extends BaseTemplate { $title = $this->getSkin()->getTitle(); if ( $wgOut->isArticleRelated() ) { - if ( $title->userIsWatching() ) { + if ( $wgUser->isWatched( $title ) ) { $text = wfMsg( 'unwatchthispage' ); $query = array( 'action' => 'unwatch',