diff options
author | thomascube <thomas@roundcube.net> | 2007-05-17 18:41:24 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-05-17 18:41:24 +0000 |
commit | 41bece1a1adffb524daa2203dfb91211f63989d8 (patch) | |
tree | 7c1846c510c0b66bfe750f0bc87aca0fc48e1601 /program/include/main.inc | |
parent | 5870871ae1f8a0f3b40436483a43cf3aafa35b2d (diff) |
Add link to message subjects (#1484257); don't make selected list items bold; remove duplicate function
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 71534f6b1..6aa8b91a1 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -753,8 +753,15 @@ function rcmail_overwrite_action($action) } -// compose a URL to the given action -function rcmail_self_url($action, $p=array(), $task=null) +/** + * Compose an URL for a specific action + * + * @param string Request action + * @param array More URL parameters + * @param string Request task (omit if the same) + * @return The application URL + */ +function rcmail_url($action, $p=array(), $task=null) { global $MAIN_TASKS, $COMM_PATH; $qstring = ''; @@ -1123,25 +1130,6 @@ function strip_newlines($str) } -/** - * Compose an URL for a specific action - * - * @param string Request action - * @param array More URL parameters - * @return The application URL - */ -function rcmail_url($action, $param=NULL) -{ - $url = $GLOBALS['COMM_PATH'] . '&'.$action; - - if (is_array($param)) - foreach ($param as $p => $val) - $url .= sprintf('&%s=%s', urlencode($p), urlencode($val)); - - return $url; -} - - // return boolean if a specific template exists function template_exists($name) { |