From bd4a2145a0a65745ab8074c3d986b1f032c148f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 14 Aug 2023 20:33:15 +0200 Subject: [PATCH] remove superfluous and faulty override of wiki_text() function --- handlers/60_edit.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/handlers/60_edit.sh b/handlers/60_edit.sh index 9d1a404..1ed639f 100755 --- a/handlers/60_edit.sh +++ b/handlers/60_edit.sh @@ -2,20 +2,6 @@ . "${_EXEC}/session_lock.sh" -wiki_text() { - # Print source text of a wiki page - # Get page from data or underlay dir - local page="$(PATH "$1")" - - if [ -f "$_DATA/pages/$page/#page.md" ]; then - cat -- "$_DATA/pages/$page/#page.md" - elif [ -f "$_EXEC/pages/$page/#page.md" ]; then - cat -- "$_EXEC/pages/$page/#page.md" - else - return 1 - fi -} - case $PATH_INFO in */\[edit\]) : ;; *) return 1 ;; -- 2.39.2