From 68d10fa70d280cfbf6fe6310949b6fa36f3d41e0 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 3 Jun 2007 17:14:21 +0000 Subject: [PATCH] Fix Parse error: syntax error, unexpected T_LNUMBER --- maintenance/undelete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1