aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 13:32:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-18 13:32:43 +0000
commitc3a4bafc3f3f0984e8751e00e024ab8c09e0ff1b (patch)
tree78da419433a8ee844225cd8e436b724a1c832efc /engine/lib
parent64876aa88b223a8f368a7669b7e129847248fab7 (diff)
downloadelgg-c3a4bafc3f3f0984e8751e00e024ab8c09e0ff1b.tar.gz
elgg-c3a4bafc3f3f0984e8751e00e024ab8c09e0ff1b.tar.bz2
Fixes #18: Set default view type in admin
http://trac.elgg.org/elgg/ticket/18 git-svn-id: https://code.elgg.org/elgg/trunk@963 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 4377083af..3670cd884 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -128,7 +128,11 @@
// If we haven't been asked for a specific view, assume default
if (empty($_SESSION['view'])) {
- $_SESSION['view'] = "default";
+ $_SESSION['view'] = "default";
+
+ // If we have a config default view for this site then use that instead of 'default'
+ if ((is_installed()) && (!empty($CONFIG->view)))
+ $_SESSION['view'] = $CONFIG->view;
}
if (empty($viewtype) && is_callable('get_input'))
$viewtype = get_input('view');