From: Chuck Hagenbuch Date: Mon, 10 Aug 2009 04:12:16 +0000 (-0400) Subject: use type_file instead of type_image X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=745a9677e8498439d7e51d60fc1ca847148bbcc6;p=horde.git use type_file instead of type_image --- diff --git a/ansel/faces/search/image.php b/ansel/faces/search/image.php index 87601f93e..a60e1408d 100644 --- a/ansel/faces/search/image.php +++ b/ansel/faces/search/image.php @@ -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()) { diff --git a/ansel/lib/Form/Image.php b/ansel/lib/Form/Image.php index 77d1d2989..1f5c4f06a 100644 --- a/ansel/lib/Form/Image.php +++ b/ansel/lib/Form/Image.php @@ -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'); } diff --git a/ansel/lib/Form/Upload.php b/ansel/lib/Form/Upload.php index 7f1ca2520..88a4fd3ff 100644 --- a/ansel/lib/Form/Upload.php +++ b/ansel/lib/Form/Upload.php @@ -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'); } }