Robert Vogel has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/328669 )

Change subject: Fixed hook handler signature
......................................................................

Fixed hook handler signature

Change-Id: Ib71d580ada09b676b1c1eeebe5967d07799779f5
---
M NSFileRepo.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NSFileRepo 
refs/changes/69/328669/1

diff --git a/NSFileRepo.php b/NSFileRepo.php
index b9ed2eb..732f305 100644
--- a/NSFileRepo.php
+++ b/NSFileRepo.php
@@ -95,7 +95,7 @@
  */
 function NSFileRepolockdownUserCan( $title, $user, $action, &$result) {
        global $wgWhitelistRead;
-       if ( in_array( $title->getPrefixedText(), $wgWhitelistRead ) ) {
+       if ( is_array( $wgWhitelistRead ) && in_array( 
$title->getPrefixedText(), $wgWhitelistRead ) ) {
                return true;
        } elseif( function_exists( 'lockdownUserPermissionsErrors' ) ) {
                if( $title->getNamespace() == NS_FILE ) {
@@ -109,7 +109,7 @@
        return true;
 }
 
-function NSFileRepoImgAuthCheck( $title, $path, $name, $result ) {
+function NSFileRepoImgAuthCheck( &$title, &$path, &$name, &$result ) {
        global $wgContLang;
 
        # See if stored in a NS path

-- 
To view, visit https://gerrit.wikimedia.org/r/328669
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib71d580ada09b676b1c1eeebe5967d07799779f5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/NSFileRepo
Gerrit-Branch: REL1_23
Gerrit-Owner: Robert Vogel <[email protected]>

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

Reply via email to