Fix Parse error: syntax error, unexpected T_LNUMBER
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 3 Jun 2007 17:14:21 +0000 (17:14 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 3 Jun 2007 17:14:21 +0000 (17:14 +0000)
maintenance/undelete.php

index 659cdbf..f722eaf 100644 (file)
@@ -18,11 +18,11 @@ if ( isset( $options['u'] ) ) {
 if ( isset( $options['r'] ) ) {
        $reason = $options['r'];
 }
-$pageName = $args[0];
+$pageName = @$args[0];
 $title = Title::newFromText( $pageName );
 if ( !$title ) {
        echo $usage;
-       exit 1;
+       exit( 1 );
 }
 $wgUser = User::newFromName( $user );
 $archive = new PageArchive( $title );