]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
Split goaway to System::externalRedirectTo() and App->internalRedirect()
[friendica.git] / boot.php
index d55f4b7bc979f23bda425417172f329b50949c1b..91f62c4b4fb32731e84ecb266414c90bc6e2f0ad 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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.
  *