aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsembrestels <sembrestels@riseup.net>2011-10-13 10:12:47 +0200
committersembrestels <sembrestels@riseup.net>2011-10-13 10:12:47 +0200
commite1b86f1bbe74a41a6ffedf45bbe09837c9809092 (patch)
tree49762c80fc3eafd069f77c43499b18ab5fdf3d55
parent30253f9e76a1b34b9877d0e188b20ce052d03fd9 (diff)
downloadelgg-e1b86f1bbe74a41a6ffedf45bbe09837c9809092.tar.gz
elgg-e1b86f1bbe74a41a6ffedf45bbe09837c9809092.tar.bz2
Breadcrumbs
-rw-r--r--start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/start.php b/start.php
index 029247022..4822a8c01 100644
--- 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();