X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fregistration%2FExtensionJsonValidator.php;h=c8e5e1906bea70b22aedaf1dc286edbc3328b3fe;hb=9e7e12252abca0ee191d38e4abb2d784a7b4e53b;hp=f6e76af557c652dd971ad3b97256b4665e5abb20;hpb=c8d361a38027ef5d808225b8a83f15417248aa67;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/registration/ExtensionJsonValidator.php b/includes/registration/ExtensionJsonValidator.php index f6e76af557..c8e5e1906b 100644 --- a/includes/registration/ExtensionJsonValidator.php +++ b/includes/registration/ExtensionJsonValidator.php @@ -75,11 +75,7 @@ class ExtensionJsonValidator { } $version = $data->manifest_version; - if ( $version !== ExtensionRegistry::MANIFEST_VERSION ) { - $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json"; - } else { - $schemaPath = __DIR__ . '/../../docs/extension.schema.json'; - } + $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json"; // Not too old if ( $version < ExtensionRegistry::OLDEST_MANIFEST_VERSION ) { @@ -109,7 +105,7 @@ class ExtensionJsonValidator { // All good. return true; } else { - $out = "$path did pass validation.\n"; + $out = "$path did not pass validation.\n"; foreach ( $validator->getErrors() as $error ) { $out .= "[{$error['property']}] {$error['message']}\n"; }