Renamed System::redirect() to $a->redirect()
This commit is contained in:
@@ -598,21 +598,6 @@ function killme()
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Redirect to another URL and terminate this process.
|
||||
*/
|
||||
function goaway($path = '')
|
||||
{
|
||||
if (strstr(normalise_link($path), 'http://')) {
|
||||
$url = $path;
|
||||
} else {
|
||||
$url = System::baseUrl() . '/' . ltrim($path, '/');
|
||||
}
|
||||
|
||||
header("Location: $url");
|
||||
killme();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the user id of locally logged in user or false.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user