Index: trunk/phase3/includes/installer/WebInstallerOutput.php |
— | — | @@ -92,10 +92,12 @@ |
93 | 93 | $vectorCss = file_get_contents( $vectorCssFile ); |
94 | 94 | $configCss = file_get_contents( $configCssFile ); |
95 | 95 | wfRestoreWarnings(); |
96 | | - $css = str_replace( 'images/', '../skins/vector/images/', $vectorCss ) . "\n" . str_replace( 'images/', '../skins/common/images/', $configCss ); |
97 | | - if( !$css ) { |
98 | | - return "/** Your webserver cannot read $vectorCssFile or $configCssFile, please check file permissions */"; |
99 | | - } elseif( $dir == 'rtl' ) { |
| 96 | + if( !$vectorCss || !$configCss ) { |
| 97 | + $css = "/** Your webserver cannot read $vectorCssFile or $configCssFile, please check file permissions */"; |
| 98 | + } |
| 99 | + |
| 100 | + $css .= str_replace( 'images/', '../skins/vector/images/', $vectorCss ) . "\n" . str_replace( 'images/', '../skins/common/images/', $configCss ); |
| 101 | + if( $dir == 'rtl' ) { |
100 | 102 | $css = CSSJanus::transform( $css, true ); |
101 | 103 | } |
102 | 104 | return $css; |