From: Sem Date: Thu, 5 Sep 2013 22:25:51 +0000 (+0200) Subject: Removed deprecated functions use. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a9263e6304c0e257864cb2b87362be2f1cff1b9c;p=lorea%2Felgg.git Removed deprecated functions use. --- diff --git a/actions/admin.php b/actions/admin.php index a2dbb7af3..bdf3b8261 100755 --- a/actions/admin.php +++ b/actions/admin.php @@ -85,6 +85,6 @@ if (isadminloggedin()) { } } -page_draw($title,$body); +elgg_view_page($title,$body); ?> diff --git a/lib/session.php b/lib/session.php index f0f38f7c9..ccd1e8f4c 100755 --- a/lib/session.php +++ b/lib/session.php @@ -16,7 +16,7 @@ function init() { global $CFG; - if (isloggedin()) { + if (elgg_is_logged_in()) { setLoggedInUser(normaliseUsername($_SESSION['user']->username)); } else { setLoggedInUser(null); @@ -114,7 +114,7 @@ function isTrusted($identity_url, $trust_root, $return_to) function getLoggedInUser() { global $CONFIG; - if (isloggedin()) { + if (elgg_is_logged_in()) { return $CONFIG->wwwroot.'profile/'.$_SESSION['user']->username; } else { return '';