From ffa7a050a4dc5cd801af3ac6bd70c709a9536249 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 24 May 2010 14:12:42 +0000 Subject: [PATCH] Cosmetic in head scripts * add a new line before including wikibits.js * don't add a new line between getHeadScripts() and getHeadItems() --- includes/OutputPage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index de425d2db9..9f4d61e8e3 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2138,8 +2138,7 @@ class OutputPage { $ret .= implode( "\n", array( $this->getHeadLinks(), $this->buildCssLinks(), - $this->getHeadScripts( $sk ), - $this->getHeadItems(), + $this->getHeadScripts( $sk ) . $this->getHeadItems(), ) ); if ( $sk->usercss ) { $ret .= Html::inlineStyle( $sk->usercss ); @@ -2202,7 +2201,7 @@ class OutputPage { global $wgUser, $wgRequest, $wgJsMimeType, $wgUseSiteJs; global $wgStylePath, $wgStyleVersion; - $scripts = Skin::makeGlobalVariablesScript( $sk->getSkinName() ); + $scripts = Skin::makeGlobalVariablesScript( $sk->getSkinName() ) . "\n"; $scripts .= Html::linkedScript( "{$wgStylePath}/common/wikibits.js?$wgStyleVersion" ); // add site JS if enabled -- 2.20.1