X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FcommandLine.inc;h=0720e76fd6abdddc24d7ebce54007bb787d3ef2c;hb=ecf56c33fae16e8a7a8f7ab56e7b6aba3720ceeb;hp=dbf1ad8ca89ad0148f12d6e8b659f8361dc60f5f;hpb=d4e8cc2467a5a3875690591f1b59642f7bb9af53;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index dbf1ad8ca8..0720e76fd6 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -1,33 +1,46 @@ addOption( $name, '', false, true ); + } + } + + public function getDbType() { + global $wgUseNormalUser; + + return ( isset( $wgUseNormalUser ) && $wgUseNormalUser ) ? + Maintenance::DB_STD : Maintenance::DB_ADMIN; + } + + /** + * No help, it would just be misleading since it misses custom options + */ + protected function maybeHelp( $force = false ) { + if ( !$force ) + return; + parent::maybeHelp( true ); + } + + public function execute() { + global $args, $options; + $args = $this->mArgs; + $options = $this->mOptions; + } +} -$wgCommandLineMode = true; -$DP = "../includes"; -include_once( $settingsFile ); +$maintClass = 'CommandLineInc'; +require( DO_MAINTENANCE ); -include_once( "Setup.php" ); -include_once( "./InitialiseMessages.inc" ); -include_once( "../install-utils.inc" ); -$wgTitle = Title::newFromText( "Rebuild messages script" ); -$wgCommandLineMode = true; -set_time_limit(0); -?>