From: Antoine Musso Date: Sun, 3 Jun 2007 17:14:21 +0000 (+0000) Subject: Fix Parse error: syntax error, unexpected T_LNUMBER X-Git-Tag: 1.31.0-rc.0~52707 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=68d10fa70d280cfbf6fe6310949b6fa36f3d41e0;p=lhc%2Fweb%2Fwiklou.git Fix Parse error: syntax error, unexpected T_LNUMBER --- diff --git a/maintenance/undelete.php b/maintenance/undelete.php index 659cdbf8f1..f722eaf8e6 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -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 );