Reedy has uploaded a new change for review. https://gerrit.wikimedia.org/r/116208
Change subject: Die gracefully if CentralAuthUser class doesn't exist ...................................................................... Die gracefully if CentralAuthUser class doesn't exist Seems counterintuitive, but if you're running it say over all Wikimedia wikis (to create accounts for Stewards for example), numerous private wikis etc do not have CentralAuth. Change-Id: I6b44b38cfb10e93e999eecbe6ebaa36fe34728e0 --- M maintenance/createLocalAccount.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth refs/changes/08/116208/1 diff --git a/maintenance/createLocalAccount.php b/maintenance/createLocalAccount.php index a78cb4f..fc9a3f0 100644 --- a/maintenance/createLocalAccount.php +++ b/maintenance/createLocalAccount.php @@ -14,6 +14,10 @@ } public function execute() { + if ( !class_exists( 'CentralAuthUser' ) ) { + $this->error( "CentralAuth isn't enabled on this wiki\n", 1 ); + } + $username = $this->getArg( 0 ); if ( !User::isValidUserName( $username ) ) { $this->error( "'$username' is an invalid username\n", 1 ); -- To view, visit https://gerrit.wikimedia.org/r/116208 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6b44b38cfb10e93e999eecbe6ebaa36fe34728e0 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/CentralAuth Gerrit-Branch: master Gerrit-Owner: Reedy <re...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits