Cleanup r55984: rename new $wgDisableTooltipsAndAccesskeys to $wgEnableTooltipsAndAcc...
[lhc/web/wiklou.git] / maintenance / commandLine.inc
1 <?php
2
3 /**
4 * Backwards-compatibility wrapper for old-style maintenance scripts
5 */
6 require( dirname(__FILE__) . '/Maintenance.php' );
7
8 if ( !isset( $optionsWithArgs ) ) {
9 $optionsWithArgs = array();
10 }
11
12 class CommandLineInc extends Maintenance {
13 public function __construct() {
14 global $optionsWithArgs;
15 parent::__construct();
16 foreach ( $optionsWithArgs as $name ) {
17 $this->addOption( $name, '', false, true );
18 }
19
20 # No help, it would just be misleading since it misses custom options
21 unset( $this->mParams['help'] );
22 }
23
24 public function execute() {
25 global $args, $options;
26 $args = $this->mArgs;
27 $options = $this->mOptions;
28 }
29 }
30
31 $maintClass = 'CommandLineInc';
32 require( DO_MAINTENANCE );
33