Index: branches/maintenance-work/maintenance/Maintenance.php |
— | — | @@ -136,6 +136,14 @@ |
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
| 140 | + * Get the script's name |
| 141 | + * @return String |
| 142 | + */ |
| 143 | + public function getName() { |
| 144 | + return $this->mSelf; |
| 145 | + } |
| 146 | + |
| 147 | + /** |
140 | 148 | * Return input from stdin. |
141 | 149 | * @param $length int The number of bytes to read. If null, |
142 | 150 | * just return the handle |
Index: branches/maintenance-work/includes/Setup.php |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | |
159 | 159 | # Useful debug output |
160 | 160 | if ( $wgCommandLineMode ) { |
161 | | - wfDebug( "\n\nStart command line script $self\n" ); |
| 161 | + wfDebug( "\n\nStart command line script " . $maintenance->getName() . "\n" ); |
162 | 162 | } elseif ( function_exists( 'getallheaders' ) ) { |
163 | 163 | wfDebug( "\n\nStart request\n" ); |
164 | 164 | wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); |