Allow CLI installer to set $whShowExceptionDetails
authorSam Reed <reedy@users.mediawiki.org>
Fri, 7 Jan 2011 05:43:51 +0000 (05:43 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 7 Jan 2011 05:43:51 +0000 (05:43 +0000)
includes/installer/CliInstaller.php
maintenance/install.php

index af50f80..c51709b 100644 (file)
@@ -35,6 +35,7 @@ class CliInstaller extends CoreInstaller {
                'upgrade' => 'cliUpgrade', /* As long as it isn't $confItems
                                                                        * in LocalSettingsGenerator, we
                                                                        * should be fine. */
+               'showexceptions' => 'wgShowExceptionDetails',
        );
 
        /**
index fb509cf..75d7e4c 100644 (file)
@@ -55,7 +55,7 @@ class CommandLineInstaller extends Maintenance {
                $this->addOption( 'env-checks', "Run environment checks only, don't change anything" );
                $this->addOption( 'upgrade',
                        'Allow the upgrade to continue despite an existing LocalSettings.php', false, true );
-
+               $this->addOption( 'showexceptions', "Whether to set wgShowExceptionDetails", false, true );
        }
 
        public function execute() {