diff --git a/SpecialCreateWiki.php b/SpecialCreateWiki.php index 3a0c0f9..2ce5aac 100644 --- a/SpecialCreateWiki.php +++ b/SpecialCreateWiki.php @@ -195,22 +195,20 @@ public function handleInput() { $cloudFlareStatus = $this->addCloudFlareRecord( $DBname ); $postCreationStatus->merge( $cloudFlareStatus ); } - - $shcreateaccount = - exec( + $shcreateaccount = + wfShellExec( "/usr/bin/php $IP/extensions/CentralAuth/maintenance/createLocalAccount.php " . - wfEscapeShellArg( $founder ) . ' --wiki ' . - wfEscapeShellArg( $DBname ) + wfEscapeShellArg( $DBname ) . + wfEscapeShellArg( $founder ) ); if ( !strpos( $shcreateaccount, 'created' ) ) { $postCreationStatus->merge( Status::newFatal( $this->msg( 'createwiki-error-usernotcreated' ) ) ); } - $shpromoteaccount = - exec( + wfShellExec( "/usr/bin/php $IP/maintenance/createAndPromote.php " . wfEscapeShellArg( $founder ) . ' --bureaucrat --sysop --force --wiki ' .