X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerOutput.php;h=00a4ff8d9564b2250d7b4986d3eebfedc8fe3908;hb=a1e58c1c7b0e777ea0110642bdbabfa1411014b6;hp=f2dc37fe91e335b010ba7064184aac0cffc23203;hpb=a443be2747d49938dd7beb2fa08d1aefcf15ed7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerOutput.php b/includes/installer/WebInstallerOutput.php index f2dc37fe91..00a4ff8d95 100644 --- a/includes/installer/WebInstallerOutput.php +++ b/includes/installer/WebInstallerOutput.php @@ -124,9 +124,9 @@ class WebInstallerOutput { $prepend = ''; $css = ''; - $cssFileNames = array(); $resourceLoader = new ResourceLoader(); foreach ( $moduleNames as $moduleName ) { + /** @var ResourceLoaderFileModule $module */ $module = $resourceLoader->getModule( $moduleName ); $cssFileNames = $module->getAllStyleFiles(); @@ -138,7 +138,8 @@ class WebInstallerOutput { } if ( !is_readable( $cssFileName ) ) { - $prepend .= ResourceLoader::makeComment( "Unable to read $cssFileName. Please check file permissions." ); + $prepend .= ResourceLoader::makeComment( "Unable to read $cssFileName. " . + "Please check file permissions." ); continue; } @@ -170,7 +171,6 @@ class WebInstallerOutput { } else { $prepend .= ResourceLoader::makeComment( "Unable to read $cssFileName." ); } - } catch ( Exception $e ) { $prepend .= ResourceLoader::formatException( $e ); } @@ -294,16 +294,14 @@ class WebInstallerOutput { public function outputFooter() { if ( $this->useShortHeader ) { -?> - - -
- -