]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed breadcrumb in groups profile.
authorsembrestels <sembrestels@riseup.net>
Thu, 13 Oct 2011 13:14:50 +0000 (15:14 +0200)
committersembrestels <sembrestels@riseup.net>
Thu, 13 Oct 2011 13:14:50 +0000 (15:14 +0200)
lib/dokuwiki/lib/tpl/default/main.php
start.php

index 6aa78b14eca9f7cb5aabf0d304eb3bfbf99cfab9..9f9618d49e54f23aec6b99ef4f39d5128d6cc46b 100644 (file)
@@ -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);
index 0621195bae9c7f6e580f81804afd469245732aef..ae5475e2478aafcb570a723e490aa680268685d8 100644 (file)
--- 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();