aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index cf3bea742..392f6cd8b 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -37,13 +37,6 @@
$location = $CONFIG->url . $location;
}
- // Preserve current viewtype
- $viewtype = elgg_get_viewtype();
- if (($viewtype) && (strcmp($viewtype, 'default')!=0)) {
- $sep = "?";
- if (strpos($location, '?')>0) $sep = "&";
- $location .= "{$sep}view=$viewtype";
- }
header("Location: {$location}");
exit;