Mollywhite has submitted this change and it was merged.
Change subject: Fixing scoping issue.
......................................................................
Fixing scoping issue.
Accidentally used $dir inside a function, which caused an error.
Change-Id: Ic84ed69cab0abd889ff08a122f292d281e35e0d2
---
M BookManagerv2.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Mollywhite: Verified; Looks good to me, approved
diff --git a/BookManagerv2.php b/BookManagerv2.php
index e9acf97..22adf71 100644
--- a/BookManagerv2.php
+++ b/BookManagerv2.php
@@ -76,7 +76,7 @@
function jsonValidate( $object, $schema = NULL ) {
if ( NULL == $schema ) {
//Default to using JSON schema
- $json = file_get_contents( $dir . '/schemas/bookschema.json' );
+ $json = file_get_contents( __DIR__ . '/schemas/bookschema.json'
);
$schema = FormatJson::decode( $json, true );
}
--
To view, visit https://gerrit.wikimedia.org/r/72665
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic84ed69cab0abd889ff08a122f292d281e35e0d2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>
Gerrit-Reviewer: Mollywhite <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits