diff options
Diffstat (limited to 'includes/installer/WebInstallerOutput.php')
-rw-r--r-- | includes/installer/WebInstallerOutput.php | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index cb708d13..9eb2c2c6 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -113,11 +113,11 @@ class WebInstallerOutput { } /** - * URL for index.php?css=foobar + * <link> to index.php?css=foobar for the <head> * @return String */ private function getCssUrl( ) { - return $_SERVER['PHP_SELF'] . '?css=' . $this->getDir(); + return Html::linkedStyle( $_SERVER['PHP_SELF'] . '?css=' . $this->getDir() ); } public function useShortHeader( $use = true ) { @@ -139,22 +139,33 @@ class WebInstallerOutput { } } + /** + * @return string + */ public function getDir() { global $wgLang; - if( !is_object( $wgLang ) || !$wgLang->isRtl() ) + if( !is_object( $wgLang ) || !$wgLang->isRtl() ) { return 'ltr'; - else + } else { return 'rtl'; + } } + /** + * @return string + */ public function getLanguageCode() { global $wgLang; - if( !is_object( $wgLang ) ) + if( !is_object( $wgLang ) ) { return 'en'; - else + } else { return $wgLang->getCode(); + } } + /** + * @return array + */ public function getHeadAttribs() { return array( 'dir' => $this->getDir(), @@ -195,7 +206,7 @@ class WebInstallerOutput { <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title><?php $this->outputTitle(); ?></title> <?php echo Html::linkedStyle( '../skins/common/shared.css' ) . "\n"; ?> - <?php echo Html::linkedStyle( $this->getCssUrl() ) . "\n"; ?> + <?php echo $this->getCssUrl() . "\n"; ?> <?php echo Html::inlineScript( "var dbTypes = " . Xml::encodeJsVar( $dbTypes ) ) . "\n"; ?> <?php echo $this->getJQuery() . "\n"; ?> <?php echo Html::linkedScript( '../skins/common/config.js' ) . "\n"; ?> @@ -249,7 +260,7 @@ class WebInstallerOutput { <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="robots" content="noindex, nofollow" /> <title><?php $this->outputTitle(); ?></title> - <?php echo Html::linkedStyle( $this->getCssUrl() ) . "\n"; ?> + <?php echo $this->getCssUrl() . "\n"; ?> <?php echo $this->getJQuery(); ?> <?php echo Html::linkedScript( '../skins/common/config.js' ); ?> </head> |