1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Issue #250 - should now auto-redirect to the new link.

This commit is contained in:
Cameron
2013-05-05 20:24:21 -07:00
parent 6744c5b91c
commit c06a0471b2
2 changed files with 12 additions and 2 deletions

View File

@@ -20,7 +20,11 @@
require_once("class2.php"); 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(); exit();

View File

@@ -306,6 +306,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 * Redirect to the given URI
* *
@@ -314,7 +320,7 @@ class redirection
* @param integer|null $http_response_code - default NULL * @param integer|null $http_response_code - default NULL
* @return void * @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()) if(session_id())
{ {