diff --git a/download.php b/download.php index 8e44e0e4d..f9875a0dd 100644 --- a/download.php +++ b/download.php @@ -20,7 +20,11 @@ require_once("class2.php"); -require_once(e_PLUGIN."download/download.php"); +$query = (e_QUERY) ? "?".e_QUERY : ""; + +e107::getRedirect()->go(e_PLUGIN."download/download.php".$query,true); + +//require_once(e_PLUGIN."download/download.php"); exit(); diff --git a/e107_handlers/redirection_class.php b/e107_handlers/redirection_class.php index c16cbe146..cf5c3b35e 100644 --- a/e107_handlers/redirection_class.php +++ b/e107_handlers/redirection_class.php @@ -305,6 +305,12 @@ class redirection } } + + public function redirect($url, $replace = TRUE, $http_response_code = NULL) + { + return $this->go($url, $replace, $http_response_code); + } + /** * Redirect to the given URI @@ -314,7 +320,7 @@ class redirection * @param integer|null $http_response_code - default NULL * @return void */ - public function redirect($url, $replace = TRUE, $http_response_code = NULL) + public function go($url, $replace = TRUE, $http_response_code = NULL) { if(session_id()) {