]> git.plutz.net Git - shellwiki/commitdiff
remove superfluous and faulty override of wiki_text() function
authorPaul Hänsch <paul@plutz.net>
Mon, 14 Aug 2023 18:33:15 +0000 (20:33 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 14 Aug 2023 18:33:15 +0000 (20:33 +0200)
handlers/60_edit.sh

index 9d1a404a85485db348e1ee405054527655de5c95..1ed639f931155e36718d8fed59018ebeae94fe28 100755 (executable)
@@ -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 ;;