dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Vary module_deps on language (in addition to skin)"
[lhc/web/wiklou.git]
/
maintenance
/
validateRegistrationFile.php
diff --git
a/maintenance/validateRegistrationFile.php
b/maintenance/validateRegistrationFile.php
index
08af11a
..
9cf7b2b
100644
(file)
--- a/
maintenance/validateRegistrationFile.php
+++ b/
maintenance/validateRegistrationFile.php
@@
-18,7
+18,7
@@
class ValidateRegistrationFile extends Maintenance {
$this->error( "$path is not a valid JSON file.", 1 );
}
if ( !isset( $data->manifest_version ) ) {
$this->error( "$path is not a valid JSON file.", 1 );
}
if ( !isset( $data->manifest_version ) ) {
- $this->output("Warning: No manifest_version set, assuming 1.\n" );
+ $this->output(
"Warning: No manifest_version set, assuming 1.\n" );
// For backwards-compatability assume 1
$data->manifest_version = 1;
}
// For backwards-compatability assume 1
$data->manifest_version = 1;
}
@@
-39,7
+39,7
@@
class ValidateRegistrationFile extends Maintenance {
. ExtensionRegistry::MANIFEST_VERSION . "\n" );
}
$retriever = new JsonSchema\Uri\UriRetriever();
. ExtensionRegistry::MANIFEST_VERSION . "\n" );
}
$retriever = new JsonSchema\Uri\UriRetriever();
- $schema = $retriever->retrieve('file://' . $schemaPath );
+ $schema = $retriever->retrieve(
'file://' . $schemaPath );
$validator = new JsonSchema\Validator();
$validator->check( $data, $schema );
$validator = new JsonSchema\Validator();
$validator->check( $data, $schema );