X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fregistration%2FExtensionRegistry.php;h=aae5fc28241549f822533e4cad5aa00ba6416ba7;hb=387bfb4f8e82fd94d1e43016ea2c6e54062dd169;hp=b000dc11b103637b375f6ba096121c598bd13f2f;hpb=c8833d8e8ecc1b60f289f5c1ffdb15b2f6d44f8b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/registration/ExtensionRegistry.php b/includes/registration/ExtensionRegistry.php index b000dc11b1..aae5fc2824 100644 --- a/includes/registration/ExtensionRegistry.php +++ b/includes/registration/ExtensionRegistry.php @@ -107,7 +107,7 @@ class ExtensionRegistry { throw new Exception( "$path does not exist!" ); } // @codeCoverageIgnoreStart - if ( !$mtime ) { + if ( $mtime === false ) { $err = error_get_last(); throw new Exception( "Couldn't stat $path: {$err['message']}" ); // @codeCoverageIgnoreEnd @@ -246,6 +246,7 @@ class ExtensionRegistry { } if ( isset( $info['AutoloadNamespaces'] ) ) { $autoloadNamespaces += $this->processAutoLoader( $dir, $info['AutoloadNamespaces'] ); + AutoLoader::$psr4Namespaces += $autoloadNamespaces; } // get all requirements/dependencies for this extension