]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Breadcrumbs
authorsembrestels <sembrestels@riseup.net>
Thu, 13 Oct 2011 08:12:47 +0000 (10:12 +0200)
committersembrestels <sembrestels@riseup.net>
Thu, 13 Oct 2011 08:12:47 +0000 (10:12 +0200)
start.php

index 02924702229351fa4606642588f795f3c3b64db6..4822a8c01ba1b1237c106b5afb7bd601da6d50ae 100644 (file)
--- a/start.php
+++ b/start.php
@@ -59,7 +59,10 @@ function dokuwiki_init(){
                        include(elgg_get_plugins_path().'dokuwiki/index.php');
                        return;
                }
+               
                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
@@ -69,6 +72,10 @@ function dokuwiki_init(){
                if (is_numeric($page[0])) {
                        $entity_guid = $page[0];
                        $ent = get_entity($entity_guid);
+                       
+                       elgg_push_breadcrumb($ent->name, $ent->getURL());
+                       elgg_push_breadcrumb(elgg_echo('wiki'));
+                       
                        if (($ent && $ent instanceof ElggGroup) && $ent->dokuwiki_enable !== 'yes') {
                                // wiki not activated for this group. bail out.
                                forward();