Index: branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php =================================================================== diff -u -r5779 -r5795 --- branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5779) +++ branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5795) @@ -1070,7 +1070,7 @@ } // append pass through variables to each link to be build - $params = array_merge_recursive2($this->getPassThroughVariables(), $params); + $params = array_merge_recursive2($this->getPassThroughVariables($params), $params); if ($this->RewriteURLs($ssl) && !$no_rewrite) { @@ -1091,12 +1091,18 @@ /** * Returns variables with values that should be passed throught with this link + variable list * - * @return unknown + * @param Array $params + * @return Array */ - function getPassThroughVariables() + function getPassThroughVariables(&$params) { static $cached_pass_through = null; - + + if (isset($params['no_pass_through']) && $params['no_pass_through']) { + unset($params['no_pass_through']); + return Array(); + } + // because pass through is not changed during script run, then we can cache it if (is_null($cached_pass_through)) {