aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dokuwiki.php4
-rw-r--r--lib/dokuwiki/lib/tpl/default/main.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/dokuwiki.php b/lib/dokuwiki.php
index af2e14b8d..8084508fa 100644
--- a/lib/dokuwiki.php
+++ b/lib/dokuwiki.php
@@ -1,8 +1,8 @@
<?php
function current_dokuwiki_entity($create = true) {
- $page_owner = page_owner();
- $user = get_loggedin_user();
+ $page_owner = elgg_get_page_owner_guid();
+ $user = elgg_get_logged_in_user_entity();
//error_log($page_owner->guid);
//error_log($user->guid);
if (!$page_owner)
diff --git a/lib/dokuwiki/lib/tpl/default/main.php b/lib/dokuwiki/lib/tpl/default/main.php
index 2de6f4987..6373ec4e9 100644
--- a/lib/dokuwiki/lib/tpl/default/main.php
+++ b/lib/dokuwiki/lib/tpl/default/main.php
@@ -35,7 +35,7 @@ $sidebar = ob_get_clean();
if (empty($sidebar_inline) && empty($page_inline)) {
$body = elgg_view_layout('two_column_left_sidebar', '', $content, $sidebar);
- echo page_draw("dokuwiki",$body);
+ echo elgg_view_page("dokuwiki", $body);
}
else {
$all_link = elgg_get_site_url().'dokuwiki/'.elgg_get_page_owner_guid();