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

index 660200d8fd371d592f2220222a067496dae7a1f7..e4e039f518268e4a34d90b6ad64152766c308c8d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,6 @@
 <?php
+
+       elgg_push_breadcrumb(elgg_echo('dokuwiki'));
        $offset = (int)get_input('offset', 0);
        $title = elgg_echo("dokuwiki:title");
        $content = elgg_list_entities(array('subtype'=>'dokuwiki', 'offset'=>$offset, 'types'=>'object','full_view'=>false));
index 2c495844ff31fb71142846a26a09eecb78a4ee56..2079be90e8335bd3fbbca16d4eda938f0d917ee3 100644 (file)
--- a/start.php
+++ b/start.php
@@ -73,8 +73,7 @@ function dokuwiki_init(){
                        $entity_guid = $page[0];
                        $ent = get_entity($entity_guid);
                        
-                       elgg_push_breadcrumb($ent->name, $ent->getURL());
-                       elgg_push_breadcrumb(elgg_echo('wiki'));
+                       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.