r83618 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83617‎ | r83618 | r83619 >
Date:00:05, 10 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fixed initialization of $editButtonsText variable
Modified paths:
  • /trunk/extensions/SemanticForms/specials/SF_CreateForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php
@@ -246,7 +246,7 @@
247247 END;
248248 $saveAttrs = array( 'type' => 'submit', 'id' => 'wpSave', 'name' => 'wpSave', 'value' => wfMsg( 'savearticle' ) );
249249 if ( count( $form_templates ) == 0 ) { $saveAttrs['disabled'] = 'disabled'; }
250 - $editButtonsText .= "\t" . Xml::element( 'input', $saveAttrs ) . "\n";
 250+ $editButtonsText = "\t" . Xml::element( 'input', $saveAttrs ) . "\n";
251251 $previewAttrs = array( 'type' => 'submit', 'id' => 'wpPreview', 'name' => 'wpPreview', 'value' => wfMsg( 'preview' ) );
252252 if ( count( $form_templates ) == 0 ) { $previewAttrs['disabled'] = 'disabled'; }
253253 $editButtonsText .= "\t" . Xml::element( 'input', $previewAttrs ) . "\n";