r47523 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47522‎ | r47523 | r47524 >
Date:23:52, 19 February 2009
Author:werdna
Status:ok
Tags:
Comment:
Do not display tools if there are not any
Modified paths:
  • /trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php
@@ -330,7 +330,9 @@
331331 $sk->makeKnownLinkObj( $this->getTitle( 'history/'.$filter ), $history_display );
332332 }
333333
334 - $fields['abusefilter-edit-tools'] = $tools;
 334+ if ($tools) {
 335+ $fields['abusefilter-edit-tools'] = $tools;
 336+ }
335337
336338 $form = Xml::buildForm( $fields );
337339 $form = Xml::fieldset( wfMsg( 'abusefilter-edit-main' ), $form );

Status & tagging log