aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dokuwiki/lib/tpl/default/main.php4
-rw-r--r--start.php5
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/dokuwiki/lib/tpl/default/main.php b/lib/dokuwiki/lib/tpl/default/main.php
index 6aa78b14e..9f9618d49 100644
--- a/lib/dokuwiki/lib/tpl/default/main.php
+++ b/lib/dokuwiki/lib/tpl/default/main.php
@@ -34,6 +34,10 @@ $sidebar = ob_get_clean();
}
if (empty($sidebar_inline) && empty($page_inline)) {
+
+ elgg_push_breadcrumb(elgg_echo('dokuwiki'), 'dokuwiki/all');
+ elgg_push_breadcrumb(sprintf(elgg_echo('dokuwiki:wikifrom'), elgg_get_page_owner_entity()->name));
+
$title = sprintf(elgg_echo('dokuwiki:wikifrom'), elgg_get_page_owner_entity()->name);
$sidebar = elgg_view_module('aside', elgg_echo('dokuwiki:sidebar'), $sidebar);
diff --git a/start.php b/start.php
index 0621195ba..ae5475e24 100644
--- a/start.php
+++ b/start.php
@@ -61,8 +61,7 @@ function dokuwiki_init(){
}
elgg_set_context("dokuwiki");
- elgg_push_breadcrumb(elgg_echo('dokuwiki'), 'dokuwiki/all');
-
+
$dokuwiki_path = elgg_get_plugins_path().'dokuwiki/lib/dokuwiki/';
$doku = current_dokuwiki_entity();
if (!$doku) // can fail if there is no user and wiki doesnt exist
@@ -73,8 +72,6 @@ function dokuwiki_init(){
$entity_guid = $page[0];
$ent = get_entity($entity_guid);
- elgg_push_breadcrumb(sprintf(elgg_echo('dokuwiki:wikifrom'),$ent->name));
-
if (($ent && $ent instanceof ElggGroup) && $ent->dokuwiki_enable !== 'yes') {
// wiki not activated for this group. bail out.
forward();