diff options
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r-- | engine/lib/elgglib.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 53771f896..b68258470 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -24,10 +24,14 @@ * @return nothing|false
*/
- function forward($location) {
+ function forward($location = "") {
if (!headers_sent()) {
$_SESSION['messages'] = system_messages();
+ if (substr_count($location, 'http://') == 0) {
+ global $CONFIG;
+ $location = $CONFIG->url . $location;
+ }
header("Location: {$location}");
exit;
}
|