mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 00:41:52 +02:00
Issue #250 - should now auto-redirect to the new link.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user