Chad has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/332670 )

Change subject: Allow MWScript to be called for initialization purposes only
......................................................................

Allow MWScript to be called for initialization purposes only

This basically lets us do things like launch MW in another PHP/HHVM
context...like the interactive debugger

Makes MWMinimalScriptInit obsolete, but will be cleaned up at a
later point

Change-Id: I5c1cc0f705363f469531d2be066665899b36fe18
---
M multiversion/MWScript.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/70/332670/1

diff --git a/multiversion/MWScript.php b/multiversion/MWScript.php
index 19d62bc..df09490 100644
--- a/multiversion/MWScript.php
+++ b/multiversion/MWScript.php
@@ -48,9 +48,12 @@
        }
 
        $relFile = $argv[1]; // the script file to run
+       $envFile = getenv( 'MEDIAWIKI_MAINT_INIT_ONLY' ); // possible override 
by environment var
        # If no MW directory is given then assume this is a /maintenance script
        if ( strpos( $relFile, '/' ) === false ) {
                $relFile = "maintenance/$relFile"; // convenience
+       } elseif( $envFile ) {
+               $relFile = 'maintenance/commandLine.inc';
        }
 
        # Remove effects of this wrapper from $argv...

-- 
To view, visit https://gerrit.wikimedia.org/r/332670
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5c1cc0f705363f469531d2be066665899b36fe18
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Chad <ch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to