Robert Vogel has uploaded a new change for review. https://gerrit.wikimedia.org/r/227700
Change subject: Fixed hook handler signatures ...................................................................... Fixed hook handler signatures The signatures of the hookhandler methods did not match the hook calls. In some cases this broke the functionality of the extension. Change-Id: I77d68aacbfc2e3bd01dd769dd11e1bb9bc156f95 --- M NSFileRepo.php 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NSFileRepo refs/changes/00/227700/1 diff --git a/NSFileRepo.php b/NSFileRepo.php index 8b8da9c..a771daa 100644 --- a/NSFileRepo.php +++ b/NSFileRepo.php @@ -78,7 +78,7 @@ /** * Check for Namespace in Title Line */ -function NSFileRepoNSCheck( $uploadForm ) { +function NSFileRepoNSCheck( &$uploadForm ) { $title = Title::newFromText($uploadForm->mDesiredDestName); if( $title === null ) { return true; @@ -96,7 +96,7 @@ /** * If Extension:Lockdown has been activated (recommend), check individual namespace protection */ -function NSFileRepolockdownUserCan( $title, $user, $action, &$result) { +function NSFileRepolockdownUserCan( &$title, &$user, $action, &$result) { global $wgWhitelistRead; if ( $wgWhitelistRead !== false && in_array( $title->getPrefixedText(), $wgWhitelistRead ) ) { return true; @@ -112,7 +112,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/227700 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77d68aacbfc2e3bd01dd769dd11e1bb9bc156f95 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/NSFileRepo Gerrit-Branch: master Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits