Fix Horde::img usage
authorMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:20:14 +0000 (14:20 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Mon, 17 May 2010 18:26:15 +0000 (14:26 -0400)
Bug: 9036

mnemo/lib/Block/summary.php

index 1fe33da..1a09ba6 100644 (file)
@@ -72,14 +72,14 @@ class Horde_Block_Mnemo_summary extends Horde_Block {
             $html .= '<tr>';
 
             if (!empty($this->_params['show_actions'])) {
+                $editImg = Horde_Themes::img('edit.png', 'horde');
                 $editurl = Horde_Util::addParameter(
                     'memo.php',
                     array('memo' => $memo['memo_id'],
                           'memolist' => $memo['memolist_id']));
                 $html .= '<td width="1%">'
                     . Horde::link(htmlspecialchars(Horde::applicationUrl(Horde_Util::addParameter($editurl, 'actionID', 'modify_memo'), true)), _("Edit Note"))
-                    . Horde::img('edit.png', _("Edit Note"), '',
-                                 $GLOBALS['registry']->getImageDir('horde'))
+                    . Horde::img($editImg, _("Edit Note"))
                     . '</a></td>';
             }