Skip to content

Commit

Permalink
A fix for cot_url_modify() refs #1242.
Browse files Browse the repository at this point in the history
  • Loading branch information
trustmaster committed Nov 15, 2013
1 parent c7d9e79 commit cfe5b6d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/functions.php
Expand Up @@ -5371,9 +5371,12 @@ function cot_url($name, $params = '', $tail = '', $htmlspecialchars_bypass = fal
*/
function cot_url_modify($params = array(), $tail = '', $htmlspecialchars_bypass = false, $ignore_appendix = false)
{
$area = defined('COT_PLUG') ? 'plug' : cot::$env['ext'];
$params = array_merge($_GET, $params);
if (!defined('COT_PLUG')) unset($params['e']);
return cot_url(
cot::$env['ext'],
array_merge($_GET, $params),
$area,
$params,
$tail,
$htmlspecialchars_bypass,
$ignore_appendix
Expand Down

0 comments on commit cfe5b6d

Please sign in to comment.