X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Fregistration%2FExtensionJsonValidator.php;h=c8e5e1906bea70b22aedaf1dc286edbc3328b3fe;hb=2b6f3f0adc475da7eab1ef04dfe917e5536e6e10;hp=f6e76af557c652dd971ad3b97256b4665e5abb20;hpb=b01d54e5981da34bf0ce6856e56d3841d71e8686;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"; }