Followup r76088: in the case where we can't read screen.css, output a comment in...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 5 Nov 2010 13:37:27 +0000 (13:37 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 5 Nov 2010 13:37:27 +0000 (13:37 +0000)
includes/installer/WebInstallerOutput.php

index 204ea9c..4b4ba47 100644 (file)
@@ -85,12 +85,13 @@ class WebInstallerOutput {
         * @return String
         */
        public function getCSS( $dir ) {
-               $vectorCssFile = dirname( __FILE__ ) . '/../../skins/vector/screen.css';
+               $vectorCssFile = dirname( dirname( dirname( __FILE__ ) ) ) .
+                       '/skins/vector/screen.css';
                wfSuppressWarnings();
                $css = file_get_contents( $vectorCssFile );
                wfRestoreWarnings();
                if( !$css ) {
-                       return '';
+                       return '/** Your webserver cannot read ' . $vectorCssFile . ', please check file permissions */';
                } elseif( $dir == 'rtl' ) {
                        return CSSJanus::transform( $css, true );
                } else {