r10828 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10827‎ | r10828 | r10829 >
Date:16:41, 29 August 2005
Author:avar
Status:old
Tags:
Comment:
* Code cleanup
Modified paths:
  • /trunk/phase3/maintenance/eval.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/eval.php
@@ -22,9 +22,7 @@
2323 /** */
2424 require_once( "commandLine.inc" );
2525
26 -$line = readconsole( "> " );
27 -
28 -while ( $line !== false ) {
 26+while ( ( $line = readconsole( '> ' ) ) !== false ) {
2927 $val = eval( $line . ";" );
3028 if( is_null( $val ) ) {
3129 echo "\n";
@@ -36,7 +34,6 @@
3735 if ( function_exists( "readline_add_history" ) ) {
3836 readline_add_history( $line );
3937 }
40 - $line = readconsole( "> " );
4138 }
4239
4340 print "\n";

Status & tagging log