From: Andrey Kutejko Date: Tue, 7 May 2013 15:09:13 +0000 (+0300) Subject: preview current image (fix) X-Git-Tag: 0.5~285 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=188da08816970ee50737166749355007834b18f5;p=ipf.git preview current image (fix) --- diff --git a/ipf/form/widget/fileinput.php b/ipf/form/widget/fileinput.php index 1423f68..cf7aaa9 100644 --- a/ipf/form/widget/fileinput.php +++ b/ipf/form/widget/fileinput.php @@ -15,7 +15,7 @@ class IPF_Form_Widget_FileInput extends IPF_Form_Widget_Input return ''; } - protected function currentValue($filename) + protected function currentValue($name, $filename) { if (!$filename) return ''; @@ -35,7 +35,7 @@ class IPF_Form_Widget_FileInput extends IPF_Form_Widget_Input public function render($name, $value, $extra_attrs=array()) { if (isset($value['data']) && is_string($value['data']) && $value['data']) - $sim = $this->currentValue($value['data']); + $sim = $this->currentValue($name, $value['data']); else $sim = '';