]> git.andy128k.dev Git - ipf.git/commitdiff
preview current image (fix)
authorAndrey Kutejko <andy128k@gmail.com>
Tue, 7 May 2013 15:09:13 +0000 (18:09 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Tue, 7 May 2013 15:09:13 +0000 (18:09 +0300)
ipf/form/widget/fileinput.php

index 1423f68827b95d93bb7c3d12c18043a1feba2389..cf7aaa964076b52b12065895e4f571aad3483fd6 100644 (file)
@@ -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 = '';