r52342 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52341‎ | r52342 | r52343 >
Date:03:23, 24 June 2009
Author:demon
Status:deferred
Tags:
Comment:
$self doesn't exist anymore. Add getName() method to Maintenance for this.
Modified paths:
  • /branches/maintenance-work/includes/Setup.php (modified) (history)
  • /branches/maintenance-work/maintenance/Maintenance.php (modified) (history)

Diff [purge]

Index: branches/maintenance-work/maintenance/Maintenance.php
@@ -136,6 +136,14 @@
137137 }
138138
139139 /**
 140+ * Get the script's name
 141+ * @return String
 142+ */
 143+ public function getName() {
 144+ return $this->mSelf;
 145+ }
 146+
 147+ /**
140148 * Return input from stdin.
141149 * @param $length int The number of bytes to read. If null,
142150 * just return the handle
Index: branches/maintenance-work/includes/Setup.php
@@ -157,7 +157,7 @@
158158
159159 # Useful debug output
160160 if ( $wgCommandLineMode ) {
161 - wfDebug( "\n\nStart command line script $self\n" );
 161+ wfDebug( "\n\nStart command line script " . $maintenance->getName() . "\n" );
162162 } elseif ( function_exists( 'getallheaders' ) ) {
163163 wfDebug( "\n\nStart request\n" );
164164 wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" );

Status & tagging log