From 705f3396e06be9610974d00f233e7ce91a8f740a Mon Sep 17 00:00:00 2001
From: Eduardo Mozart de Oliveira
<2974895+eduardomozart@users.noreply.github.com>
Date: Fri, 27 Sep 2024 15:36:31 -0300
Subject: [PATCH 1/2] Fix erroneous regex match
Actually the regex matches any word that the page contains. E.g. if the current namespace is ``arubavmc:config:apgroups``, the Bookcreator isn't shown because it contains the word ``group``, which is blacklisted by default. This commit will change the RegExp to match only if the namespace starts with ``group``.
---
conf/default.php | 2 +-
conf/metadata.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/conf/default.php b/conf/default.php
index a6a6849..0778409 100644
--- a/conf/default.php
+++ b/conf/default.php
@@ -11,7 +11,7 @@
$conf['help_page'] = 'wiki:ebook_help';
$conf['save_namespace'] = 'wiki:ebook';
-$conf['skip_ids'] = 'sidebar,user,group,playground,wiki:syntax,wiki:ebook';
+$conf['skip_ids'] = 'sidebar,user:,group:,playground,wiki:syntax,wiki:ebook';
//Setup VIM: ex: et ts=2 enc=utf-8 :
\ No newline at end of file
diff --git a/conf/metadata.php b/conf/metadata.php
index 7a93e41..ff83399 100644
--- a/conf/metadata.php
+++ b/conf/metadata.php
@@ -17,8 +17,8 @@
$meta['skip_ids'] = array('multicheckbox',
'_choices' => array( 'sidebar'
- ,'user'
- ,'group'
+ ,'user:'
+ ,'group:'
,'playground'
,'wiki:syntax'
,'wiki:ebook'
From c8977aaa20ebf344940f199162fa3db4b6c5aa30 Mon Sep 17 00:00:00 2001
From: Eduardo Mozart de Oliveira
<2974895+eduardomozart@users.noreply.github.com>
Date: Fri, 27 Sep 2024 15:57:11 -0300
Subject: [PATCH 2/2] Add space to separate strings
---
action/pagetools.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/action/pagetools.php b/action/pagetools.php
index 81e666b..391ea4a 100644
--- a/action/pagetools.php
+++ b/action/pagetools.php
@@ -62,7 +62,7 @@ public function bookbar(Doku_Event $event) {
' . inlineSVG(__DIR__ . '/../images/notebook-edit-outline.svg') . '
- ' . $this->getLang('showbook') . '(0 ' . $this->getLang('pages') . ')
+ ' . $this->getLang('showbook') . ' (0 ' . $this->getLang('pages') . ')
';