* Avoid PHP notice on command-line scripts if empty argument is passed ('')
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Jan 2006 08:40:13 +0000 (08:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 12 Jan 2006 08:40:13 +0000 (08:40 +0000)
RELEASE-NOTES
maintenance/commandLine.inc

index 17d9f85..6440a95 100644 (file)
@@ -462,6 +462,10 @@ fully support the editing toolbar, but was found to be too confusing.
 * Improve "upload disabled" notice
 * Move parts of index.php to include/Wiki.php in an attempt to both cleanup index.php 
   and create a MediaWiki-class mediaWiki base object
+* (bug 4104) Added OutputPageBeforeHTML hook for tweaking primary wiki output
+  HTML on final output (cached or not)
+* Avoid PHP notice on command-line scripts if empty argument is passed ('')
+
 
 === Caveats ===
 
index 62c7ae6..1c9d1af 100644 (file)
@@ -55,7 +55,7 @@ for( $arg = reset( $argv ); $arg !== false; $arg = next( $argv ) ) {
                        }
                        $options[$option] = $param;
                }
-       } elseif ( $arg{0} == '-' ) {
+       } elseif ( substr( $arg, 0, 1 ) == '-' ) {
                # Short options
                for ( $p=1; $p<strlen( $arg ); $p++ ) {
                        $option = $arg{$p};