From: Chad Horohoe Date: Wed, 10 Nov 2010 22:11:18 +0000 (+0000) Subject: Combine config.css with vector.css so it gets flipped too, plus one less request :) X-Git-Tag: 1.31.0-rc.0~33935 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=b6dcd6755768f54735436065062317d9bd872a26;p=lhc%2Fweb%2Fwiklou.git Combine config.css with vector.css so it gets flipped too, plus one less request :) --- diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index 1f429b89e5..3421d5be9f 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -85,13 +85,14 @@ class WebInstallerOutput { * @return String */ public function getCSS( $dir ) { - $vectorCssFile = dirname( dirname( dirname( __FILE__ ) ) ) . - '/skins/vector/screen.css'; + $skinDir = dirname( dirname( dirname( __FILE__ ) ) ) . '/skins'; + $vectorCssFile = "$skinDir/vector/screen.css"; + $configCssFile = "$skinDir/common/config.css"; wfSuppressWarnings(); - $css = file_get_contents( $vectorCssFile ); + $css = file_get_contents( $vectorCssFile ) . "\n" . file_get_contents( $configCssFile ); wfRestoreWarnings(); if( !$css ) { - return "/** Your webserver cannot read $vectorCssFile, please check file permissions */"; + return "/** Your webserver cannot read $vectorCssFile or $configCssFile, please check file permissions */"; } elseif( $dir == 'rtl' ) { $css = CSSJanus::transform( $css, true ); } @@ -175,7 +176,6 @@ class WebInstallerOutput { <?php $this->outputTitle(); ?> getCssUrl() ) . "\n"; ?> - getJQuery() . "\n"; ?> getJQueryTipsy() . "\n"; ?> @@ -233,7 +233,6 @@ class WebInstallerOutput { <?php $this->outputTitle(); ?> getCssUrl() ) . "\n"; ?> - getJQuery(); ?> getJQueryTipsy() . "\n"; ?>