From: Benjamin Renard Date: Tue, 16 Nov 2010 18:51:08 +0000 (+0100) Subject: LSformElement_image :: getDisplay() : Fixed error X-Git-Tag: 1.0-1~186 X-Git-Url: http://git.labs.libre-entreprise.org/?p=ldapsaisie.git;a=commitdiff_plain;h=4409f854cf2990bcd79a468f601c9e807be7208f;hp=ba7b304e566e89f8841c0cb1dcf850e251c40725 LSformElement_image :: getDisplay() : Fixed error --- diff --git a/public_html/includes/class/class.LSformElement_image.php b/public_html/includes/class/class.LSformElement_image.php index 0c28826..1851390 100644 --- a/public_html/includes/class/class.LSformElement_image.php +++ b/public_html/includes/class/class.LSformElement_image.php @@ -46,6 +46,7 @@ class LSformElement_image extends LSformElement { function getDisplay(){ LSsession :: addCssFile('LSformElement_image.css'); $return = true; + $id=$this -> name.'_'.rand(); if (!$this -> isFreeze()) { LSsession :: addHelpInfos( 'LSformElement_date', @@ -54,7 +55,6 @@ class LSformElement_image extends LSformElement { 'delete' => _('Click to delete the picture.') ) ); - $id=$this -> name.'_'.rand(); $return = $this -> getLabelInfos(); $return['html'] = $this -> fetchTemplate(NULL,array('id' => 'LSformElement_image_input_'.$id)); $this -> form -> setMaxFileSize(MAX_SEND_FILE_SIZE);