From 188da08816970ee50737166749355007834b18f5 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Tue, 7 May 2013 18:09:13 +0300 Subject: [PATCH] preview current image (fix) --- ipf/form/widget/fileinput.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = ''; -- 2.49.0