mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +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("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();
|
||||||
|
|
||||||
|
@@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user