aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsembrestels <sembrestels@riseup.net>2011-10-13 09:16:46 +0200
committersembrestels <sembrestels@riseup.net>2011-10-13 09:16:46 +0200
commitc11554febd7626bd85f62572f021db4d91d589bc (patch)
tree2d138314c7bab9b56c1b56dc33a5c2ffc7cfcea6
parent5eeb4ed7ed67ec5e3bf1167c859a1997dc0a49dd (diff)
downloadelgg-c11554febd7626bd85f62572f021db4d91d589bc.tar.gz
elgg-c11554febd7626bd85f62572f021db4d91d589bc.tar.bz2
Upgraded functions in dokuwiki modifications
-rw-r--r--lib/dokuwiki/inc/actions.php2
-rw-r--r--lib/dokuwiki/inc/auth/elgg.class.php2
2 files changed, 2 insertions, 2 deletions
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())) {