]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removed deprecated functions use.
authorSem <sembrestels@riseup.net>
Thu, 5 Sep 2013 22:25:51 +0000 (00:25 +0200)
committerSem <sembrestels@riseup.net>
Thu, 5 Sep 2013 22:25:51 +0000 (00:25 +0200)
actions/admin.php
lib/session.php

index a2dbb7af33a79a4ed22465efa90b1204804dadcc..bdf3b8261413500262980e605edac0b24a59f9bd 100755 (executable)
@@ -85,6 +85,6 @@ if (isadminloggedin()) {
        }\r
 }              \r
 \r
-page_draw($title,$body);\r
+elgg_view_page($title,$body);\r
 \r
 ?>\r
index f0f38f7c99d20b7706f88299a08e106399c0d427..ccd1e8f4cf40ea1f6c21e46735dafce9503a9438 100755 (executable)
@@ -16,7 +16,7 @@ function init()
 {\r
        global $CFG;\r
 \r
-       if (isloggedin()) {\r
+       if (elgg_is_logged_in()) {\r
                setLoggedInUser(normaliseUsername($_SESSION['user']->username));\r
        } else {\r
                setLoggedInUser(null);\r
@@ -114,7 +114,7 @@ function isTrusted($identity_url, $trust_root, $return_to)
 function getLoggedInUser()\r
 {\r
     global $CONFIG;\r
-    if (isloggedin()) {\r
+    if (elgg_is_logged_in()) {\r
         return $CONFIG->wwwroot.'profile/'.$_SESSION['user']->username;\r
     } else {\r
         return '';\r