aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index f90179b4f..757fde667 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -300,6 +300,11 @@
* @return unknown
*/
function page_draw($title, $body) {
+ if (isloggedin()) {
+ $view = "pageshells/pageshell";
+ } else {
+ $view = "pageshells/pageshell_loggedout";
+ }
echo elgg_view('pageshells/pageshell', array(
'title' => $title,
'body' => $body,