Skip to content

Commit

Permalink
Only change PageID element in show mode
Browse files Browse the repository at this point in the history
  • Loading branch information
geekitude committed Nov 16, 2019
1 parent 0d164f2 commit b40ed33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.php
Expand Up @@ -45,7 +45,7 @@ public function register(Doku_Event_Handler $controller) {
* Populate configuration settings to JSINFO
*/
function populate_jsinfo(Doku_Event $event, $params) {
global $JSINFO, $conf, $ID;
global $JSINFO, $conf, $ID, $ACT;

// Store settings values in JSINFO
$JSINFO['conf']['start'] = $conf['start'];
Expand Down Expand Up @@ -116,7 +116,7 @@ function populate_jsinfo(Doku_Event $event, $params) {
}

// Build 'pageIdTrace' skeleton if required
if (($this->getConf('pageIdTrace')) or ($this->getConf('pageIdExtraTwistie'))) {
if ((($this->getConf('pageIdTrace')) or ($this->getConf('pageIdExtraTwistie'))) and ($ACT == "show")) {
$skeleton = '<span>';
if ($this->getConf('pageIdTrace')) {
$parts = explode(':', $ID);
Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base twistienav
author Simon DELAGE
email sdelage@gmail.com
date 2019-02-09
date 2019-11-16
name TwistieNav plugin
desc Adds drop-down navigation menus to breadcrumbs
url http://www.dokuwiki.org/plugin:twistienav

0 comments on commit b40ed33

Please sign in to comment.