Default View Patch
Mike Bydalek <[email protected]>
| Newsgroups | gmane.comp.horde.whups |
|---|---|
| Message-ID | <[email protected]> |
I just updated my Whups and noticed that the prefs default view 'ticket/create' doesn't work since it mis-creates the forms. Basically it tries to goto /create.php instead of /ticket/create.php This is just a small patch to fix this for the time being, but I'm sure there's a better way to do it (since there always is). -Mike -- Whups mailing list - Join the hunt: http://horde.org/bounties/#whups Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
index.php.patch
(application/octet-stream, 446 B)
*** index.php Mon Jul 19 15:42:43 2004
--- index.php.orig Mon Jul 19 15:42:57 2004
***************
*** 22,26 ****
}
require_once WHUPS_BASE . '/lib/base.php';
! $redirect = Horde::applicationUrl($prefs->getValue('whups_default_view') . '.php', true);
! header("Location: " . $redirect);
--- 22,25 ----
}
require_once WHUPS_BASE . '/lib/base.php';
! require WHUPS_BASE . '/' . $prefs->getValue('whups_default_view') . '.php';