use type_file instead of type_image
authorChuck Hagenbuch <chuck@horde.org>
Mon, 10 Aug 2009 04:12:16 +0000 (00:12 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 10 Aug 2009 04:12:16 +0000 (00:12 -0400)
ansel/faces/search/image.php
ansel/lib/Form/Image.php
ansel/lib/Form/Upload.php

index 87601f9..a60e140 100644 (file)
@@ -13,8 +13,8 @@ require_once 'tabs.php';
 
 /* Search from */
 $form = new Horde_Form($vars);
-$msg = _("Please upload photo with the face to search for. You can search only one face per time.");
-$form->addVariable(_("Face to search for"), 'image', 'image', true, false, $msg, array(false));
+$msg = _("Please upload photo with the face to search for. You can search only one face at a time.");
+$form->addVariable(_("Face to search for"), 'image', 'file', true, false, $msg, array(false));
 $form->setButtons(_("Upload"));
 
 if ($form->validate()) {
index 77d1d29..1f5c4f0 100644 (file)
@@ -41,7 +41,7 @@ class Ansel_Form_Image extends Horde_Form
 
         $this->addHidden('', 'image0', 'text', false);
         $upload = &$this->addVariable(
-        _("Replace photo with this file"), 'file0', 'image', false, false,
+        _("Replace photo with this file"), 'file0', 'file', false, false,
         _("Maximum photo size:") . ' '  . $filesize, array(false));
         $upload->setHelp('upload');
     }
index 7f1ca25..88a4fd3 100644 (file)
@@ -35,7 +35,7 @@ class Ansel_Form_Upload extends Horde_Form
         $this->addHidden('', 'image0', 'text', false);
         if (!strlen($vars->get('image0'))) {
             $upload = &$this->addVariable(
-                _("File to upload"), 'file0', 'image', false, false,
+                _("File to upload"), 'file0', 'file', false, false,
                 _("Maximum photo size:") . ' '  . $filesize, array(false));
             $upload->setHelp('upload');
         }
@@ -55,7 +55,7 @@ class Ansel_Form_Upload extends Horde_Form
         for ($i = 1; $i <= $conf['image']['num_uploads']; $i++) {
             $this->addHidden('', 'image' . $i, 'text', false);
             if (!strlen($vars->get('image' . $i))) {
-                $upload = &$this->addVariable(sprintf(_("File %s"), $i), 'file' . $i, 'image', false, false, null, array(false));
+                $upload = &$this->addVariable(sprintf(_("File %s"), $i), 'file' . $i, 'file', false, false, null, array(false));
                 $upload->setHelp('upload');
             }
         }