registration: Fix caching of load_composer_autoloader
[lhc/web/wiklou.git] / includes / registration / ExtensionRegistry.php
index bf33c6c..740fed4 100644 (file)
@@ -319,7 +319,9 @@ class ExtensionRegistry {
                        define( $name, $val );
                }
                foreach ( $info['autoloaderPaths'] as $path ) {
-                       require_once $path;
+                       if ( file_exists( $path ) ) {
+                               require_once $path;
+                       }
                }
 
                $this->loaded += $info['credits'];