aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsembrestels <sembrestels@riseup.net>2011-10-13 15:14:50 +0200
committersembrestels <sembrestels@riseup.net>2011-10-13 15:14:50 +0200
commit2849c87594ebe62d418c9eff7645697cf328b144 (patch)
tree238c66b0a94e0cef37a8b124bb75397f88a1b7f5
parent7d4f72110d1eb3ec056fb2b876112dcb6e65cf8e (diff)
downloadelgg-2849c87594ebe62d418c9eff7645697cf328b144.tar.gz
elgg-2849c87594ebe62d418c9eff7645697cf328b144.tar.bz2
Fixed breadcrumb in groups profile.
-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();