[dev] Nag needs a relative URL for summary view
John Morrissey
jwm at horde.net
Fri Jan 31 15:15:32 PST 2003
Nag is generating an absolute URL for the New Task link in the summary view;
it needs a relative one to link properly. Patch attached.
john
--
John Morrissey _o /\ ---- __o
jwm at horde.net _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__
-------------- next part --------------
Index: summary.php
===================================================================
RCS file: /repository/nag/lib/Block/summary.php,v
retrieving revision 1.2
diff -u -u -r1.2 summary.php
--- summary.php 28 Jan 2003 13:30:50 -0000 1.2
+++ summary.php 31 Jan 2003 20:13:57 -0000
@@ -18,7 +18,7 @@
{
global $registry;
$html = Horde::link(Horde::url($registry->getInitialPage(), true), $registry->getParam('name'), 'header') . $registry->getParam('name') . '</a> - ';
- $html .= Horde::link(Horde::applicationUrl('/task.php?actionID=' . NAG_ADD_TASK, true), _("New Task"), 'smallheader') . Horde::img('note.gif', _("New Task"), '', Horde::url($registry->getParam('graphics'), true, -1)) . _("New Task") . '</a>';
+ $html .= Horde::link(Horde::applicationUrl('task.php?actionID=' . NAG_ADD_TASK, true), _("New Task"), 'smallheader') . Horde::img('note.gif', _("New Task"), '', Horde::url($registry->getParam('graphics'), true, -1)) . _("New Task") . '</a>';
return $html;
}
More information about the dev
mailing list