From: Paul Hänsch Date: Mon, 14 Aug 2023 18:33:15 +0000 (+0200) Subject: remove superfluous and faulty override of wiki_text() function X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=bd4a2145a0a65745ab8074c3d986b1f032c148f0;p=shellwiki remove superfluous and faulty override of wiki_text() function --- 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 ;;