r102990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102989‎ | r102990 | r102991 >
Date:16:11, 14 November 2011
Author:yaron
Status:deferred
Tags:
Comment:
Follow-up to r102888 - changed parameter for enabling preview from "imagepreview=on" to just "imagepreview"
Modified paths:
  • /trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/forminputs/SF_TextInput.php
@@ -62,7 +62,7 @@
6363
6464 $cssClasses = array( 'sfFancyBox', 'sfUploadable' );
6565
66 - $showPreview = array_key_exists( 'imagepreview', $other_args ) && trim( $other_args['imagepreview'] == 'on' );
 66+ $showPreview = array_key_exists( 'imagepreview', $other_args );
6767
6868 if ( $showPreview ) {
6969 $cssClasses[] = 'sfImagePreview';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102888added image preview stuffjeroendedauw11:48, 13 November 2011