From b6dcd6755768f54735436065062317d9bd872a26 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 10 Nov 2010 22:11:18 +0000 Subject: [PATCH] Combine config.css with vector.css so it gets flipped too, plus one less request :) --- includes/installer/WebInstallerOutput.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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"; ?> -- 2.20.1