better history
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 00:00:06 +0000 (00:00 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 4 Dec 2005 00:00:06 +0000 (00:00 +0000)
maintenance/mcc.php

index 0d83378..1f7b3b6 100755 (executable)
@@ -138,7 +138,9 @@ do {
 
                case 'history':
                        if ( function_exists( 'readline_list_history' ) ) {
-                               print_r(readline_list_history());
+                               foreach( readline_list_history() as $num => $line) {
+                                       print "$num: $line\n";
+                               }
                        } else {
                                print "readline_list_history() not available\n";
                        }