From e0c5ffc792657f5fb3ff1f0774cfcd18befb8175 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 14 Feb 2008 18:13:29 +0000 Subject: A simple beginning to an install script git-svn-id: https://code.elgg.org/elgg/trunk@34 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine/lib/elgglib.php') 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; } -- cgit v1.2.3