From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/SkinLegacy.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'includes/SkinLegacy.php') diff --git a/includes/SkinLegacy.php b/includes/SkinLegacy.php index e695ba6c..b9766a9f 100644 --- a/includes/SkinLegacy.php +++ b/includes/SkinLegacy.php @@ -120,7 +120,7 @@ class LegacyTemplate extends BaseTemplate { } $s .= "\n
\n
\n" . - "\n\n"; + "
\n\n"; if ( $this->getSkin()->qbSetting() == 0 ) { $s .= ""; + return ""; } function editThisPage() { @@ -610,7 +610,7 @@ class LegacyTemplate extends BaseTemplate { $diff = $wgRequest->getVal( 'diff' ); $title = $this->getSkin()->getTitle(); - if ( $title->getArticleID() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) ) { + if ( $title->getArticleID() && ( ! $diff ) && $wgUser->isAllowed( 'protect' ) && $title->getRestrictionTypes() ) { if ( $title->isProtected() ) { $text = wfMessage( 'unprotectthispage' )->text(); $query = array( 'action' => 'unprotect' ); @@ -786,7 +786,7 @@ class LegacyTemplate extends BaseTemplate { return ''; } - # __NEWSECTIONLINK___ changes behaviour here + # __NEWSECTIONLINK___ changes behavior here # If it is present, the link points to this page, otherwise # it points to the talk page if ( !$title->isTalkPage() && !$wgOut->showNewSectionLink() ) { -- cgit v1.2.3-54-g00ecf
\n" . @@ -179,10 +179,10 @@ class LegacyTemplate extends BaseTemplate { $search = $wgRequest->getText( 'search' ); $s = '
\n" - . '\n" - . ''; + . $this->getSkin()->escapeSearchLink() . "\">\n" + . '\n" + . ''; if ( $wgUseTwoButtonsSearchForm ) { $s .= ' \n"; @@ -253,7 +253,7 @@ class LegacyTemplate extends BaseTemplate { $lang = $title->getPageLanguage(); $variants = $lang->getVariants(); - if ( !$wgDisableLangConversion && sizeof( $variants ) > 1 + if ( !$wgDisableLangConversion && count( $variants ) > 1 && !$title->isSpecialPage() ) { foreach ( $variants as $code ) { $varname = $lang->getVariantname( $code ); @@ -263,7 +263,7 @@ class LegacyTemplate extends BaseTemplate { } $s = $wgLang->pipeList( array( $s, - '' . htmlspecialchars( $varname ) . '' + '' . htmlspecialchars( $varname ) . '' ) ); } } @@ -345,7 +345,7 @@ class LegacyTemplate extends BaseTemplate { $s .= $this->deleteThisPage(); } - if ( $wgUser->isAllowed( 'protect' ) ) { + if ( $wgUser->isAllowed( 'protect' ) && $title->getRestrictionTypes() ) { $s .= $sep . $this->protectThisPage(); } @@ -553,7 +553,7 @@ class LegacyTemplate extends BaseTemplate { */ function getQuickbarCompensator( $rows = 1 ) { wfDeprecated( __METHOD__, '1.19' ); - return "