aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 15:12:31 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 15:12:31 +0000
commit89f748de142769a5a343c5e30c21752769ef26f2 (patch)
tree3c544a2ca7d80c41873f7a227ccd59593923f378 /engine/lib
parent42fa2136d56095cdede8e6a64fdd44052af5e0cd (diff)
downloadelgg-89f748de142769a5a343c5e30c21752769ef26f2.tar.gz
elgg-89f748de142769a5a343c5e30c21752769ef26f2.tar.bz2
Modified page_draw to behave correctly depending on sessions
git-svn-id: https://code.elgg.org/elgg/trunk@367 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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,