]> git.plutz.net Git - shellwiki/commitdiff
call revision macro from handler instead of theme
authorPaul Hänsch <paul@plutz.net>
Thu, 27 Jul 2023 07:18:39 +0000 (09:18 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 27 Jul 2023 07:18:39 +0000 (09:18 +0200)
handlers/40_revision.sh

index 08350c7b80855bca4624a5091ea00f760edc6939..e3b8d96c3f3f682f31c84a9071820dd84f161932 100755 (executable)
@@ -8,7 +8,8 @@ case "${PATH_INFO}" in
     if ! acl_read "${PATH_INFO%\[revision\]}"; then
       theme_error 403
     else
-      theme_revisions "${PATH_INFO%\[revision\]}"
+      "$_EXEC/macros/revisions" --list --diff "$page" \
+      | theme_revisions -
     fi
     return 0
     ;;