diff options
author | sembrestels <sembrestels@riseup.net> | 2011-10-13 10:12:47 +0200 |
---|---|---|
committer | sembrestels <sembrestels@riseup.net> | 2011-10-13 10:12:47 +0200 |
commit | e1b86f1bbe74a41a6ffedf45bbe09837c9809092 (patch) | |
tree | 49762c80fc3eafd069f77c43499b18ab5fdf3d55 /start.php | |
parent | 30253f9e76a1b34b9877d0e188b20ce052d03fd9 (diff) | |
download | elgg-e1b86f1bbe74a41a6ffedf45bbe09837c9809092.tar.gz elgg-e1b86f1bbe74a41a6ffedf45bbe09837c9809092.tar.bz2 |
Breadcrumbs
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |