]> git.plutz.net Git - shellwiki/commitdiff
no code: add comments warning about the mdfile override in translations handler
authorPaul Hänsch <paul@plutz.net>
Sun, 21 May 2023 10:58:33 +0000 (12:58 +0200)
committerPaul Hänsch <paul@plutz.net>
Sun, 21 May 2023 10:58:33 +0000 (12:58 +0200)
acl.sh
tools.sh

diff --git a/acl.sh b/acl.sh
index 0ba66631d40c6709e1b59ee2e41f6dfde4167cc0..1b25d5ec78c93d7c33006aad9a0a329f7f9f3cb4 100755 (executable)
--- a/acl.sh
+++ b/acl.sh
@@ -29,6 +29,8 @@ acl_collect(){
     [ "$path" = / ] && break
     path="${path%/*/}/"
 
+    # Do not use `mdfile` function here because of specialties
+    # in translation handler (`handlers/10_translations.sh`)
     if   [ -f "$_DATA/pages/$path/#page.md" ]; then
       pagefile="$_DATA/pages/$path/#page.md"
     elif [ -f "$_EXEC/pages/$path/#page.md" ]; then
index de055fe808049e2afbc3b925a1f19f1f06413d5f..2e98d674d764295b3e338fd3ca7a59c8c42ec0d9 100755 (executable)
--- a/tools.sh
+++ b/tools.sh
@@ -16,6 +16,11 @@ mdfile(){
   #  back to default page from installation
   local page="$(PATH "$1")"
 
+  # IMPORTANT: A Copy of this function exists
+  # in `handlers/10_translations.sh`
+  # Look into it now!
+  # Keep it synchronized, when changing anything
+
   if   [ -f "$_DATA/pages/$page/#page.md" ]; then
     printf %s\\n "$_DATA/pages/$page/#page.md"
     return 0