fix display of icons - we should be using Hodre::img, not Horde_Themes::img
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 31 May 2010 17:30:56 +0000 (13:30 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 31 May 2010 17:33:19 +0000 (13:33 -0400)
in these cases.

ansel/faces/gallery.php
ansel/templates/faces/gallery.inc

index fe765b8..1d20b14 100644 (file)
@@ -38,8 +38,8 @@ $page = Horde_Util::getFormData('page', 0);
 $perpage = min($prefs->getValue('tilesperpage'), $conf['thumbnail']['perpage']);
 $images = $gallery->getImages($page * $perpage, $perpage);
 
-$reloadimage = Horde_Themes::img('reload.png');
-$customimage = Horde_Themes::img('layout.png');
+$reloadimage = Horde::img('reload.png');
+$customimage = Horde::img('layout.png');
 $customurl = Horde_Util::addParameter(Horde::applicationUrl('faces/custom.php'), 'page', $page);
 $face = $GLOBALS['injector']->getInstance('Ansel_Faces');
 $autogenerate = $face->canAutogenerate();
index 13027ee..dbdcb26 100644 (file)
      <?php echo $image->filename; ?><br /><br />
      <?php if ($autogenerate): ?>
       <a href="javascript:void(0)" onclick="proccessImageFaces(<?php echo $image->id ?>, 1)">
-      <img src="<?php echo $reloadimage ?>" alt="[icon]" /><?php echo _("Reget faces for this photo") ?></a><br />
+      <?php echo $reloadimage . _("Reget faces for this photo") ?></a><br />
      <?php endif; ?>
 
      <a href="<?php echo Horde_Util::addParameter($customurl, array('image' => $image->id, 'gallery' => $image->gallery)) ?>">
-     <img src="<?php echo $customimage ?>" alt="[icon]" /><?php echo _("Add a custom face range") ?></a><br />
+     <?php echo  $customimage .  _("Add a custom face range") ?></a><br />
     </td>
     <td style="text-align: center">
     <a href="<?php echo Ansel::getUrlFor('view', array('view' => 'Image', 'image' => $image->id, 'gallery' => $image->gallery)); ?>" target="_blank">