From: Brion Vibber Date: Sun, 11 Apr 2004 23:21:44 +0000 (+0000) Subject: Fix notice with toolbar option off X-Git-Tag: 1.3.0beta1~458 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=32ae234ee2a03057f0b807bd1614566932b2008f;p=lhc%2Fweb%2Fwiklou.git Fix notice with toolbar option off --- diff --git a/includes/EditPage.php b/includes/EditPage.php index d66e8f726c..97246fa95c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -278,9 +278,11 @@ class EditPage { $copywarn = wfMsg( "copyrightwarning", $sk->makeKnownLink( wfMsg( "copyrightpage" ) ) ); - if($wgUser->getOption("showtoolbar")) { - // prepare toolbar for edit buttons - $toolbar=$sk->getEditToolbar(); + if( $wgUser->getOption("showtoolbar") ) { + # prepare toolbar for edit buttons + $toolbar = $sk->getEditToolbar(); + } else { + $toolbar = ""; } // activate checkboxes if user wants them to be always active