Mollywhite has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/72665


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BookManagerv2 
refs/changes/65/72665/1

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: newchange
Gerrit-Change-Id: Ic84ed69cab0abd889ff08a122f292d281e35e0d2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to