From c11554febd7626bd85f62572f021db4d91d589bc Mon Sep 17 00:00:00 2001 From: sembrestels Date: Thu, 13 Oct 2011 09:16:46 +0200 Subject: Upgraded functions in dokuwiki modifications --- lib/dokuwiki/inc/actions.php | 2 +- lib/dokuwiki/inc/auth/elgg.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dokuwiki') diff --git a/lib/dokuwiki/inc/actions.php b/lib/dokuwiki/inc/actions.php index 7673683ca..ed3c12666 100644 --- a/lib/dokuwiki/inc/actions.php +++ b/lib/dokuwiki/inc/actions.php @@ -147,7 +147,7 @@ function act_dispatch(){ $evt->advise_after(); unset($evt); if ($ACT == 'save') { - $user = get_loggedin_user(); + $user = elgg_get_logged_in_user_entity(); $doku = current_dokuwiki_entity(); $group = get_entity($doku->container_guid); add_to_river('river/dokuwiki', 'wiki/'.$ACT.'/'.$QUERY, $user->getGUID(), $doku->getGUID(), $group->access_id); diff --git a/lib/dokuwiki/inc/auth/elgg.class.php b/lib/dokuwiki/inc/auth/elgg.class.php index f8b575564..c0a291832 100644 --- a/lib/dokuwiki/inc/auth/elgg.class.php +++ b/lib/dokuwiki/inc/auth/elgg.class.php @@ -75,7 +75,7 @@ class auth_elgg extends auth_basic { if (!$user) return false; //error_log("getUserData:".$username); - $page_owner = page_owner_entity(); + $page_owner = elgg_get_page_owner_entity(); $grps = array(); if ($page_owner instanceof ElggGroup) { if ($page_owner->canEdit($user->getGUID())) { -- cgit v1.2.3