From c4d227c09f94fcff6d2ef2d077f70989098248d4 Mon Sep 17 00:00:00 2001
From: MachX428 <66130048+MachX428@users.noreply.github.com>
Date: Fri, 10 Sep 2021 19:51:10 -0400
Subject: [PATCH] Fix PHP Fatal Error
Template does not work and makes Dokuwiki unusable. The following error
can be found in log/nginx/error.log:
"PHP message: PHP Fatal error: Call to undefined function tpl_js() in
/config/dokuwiki/lib/tpl/codowik/main.php:36"
I believe this is due to a bad merge. Fixed the issue and now everything
works. Tested on Release 2020-07-29 "Hogfather".
---
js/main.js | 3 ++-
main.php | 55 ------------------------------------------------------
2 files changed, 2 insertions(+), 56 deletions(-)
diff --git a/js/main.js b/js/main.js
index 58c6725..3a43be8 100644
--- a/js/main.js
+++ b/js/main.js
@@ -7,7 +7,8 @@ jQuery(function ()
},
west: {
applyDefaultStyles: true,
- minSize: 300
+ minSize: 300,
+ enableCursorHotkey: JSINFO.template_codowik_sidebarHotkey
}
});
diff --git a/main.php b/main.php
index 2405881..3be9b72 100755
--- a/main.php
+++ b/main.php
@@ -31,61 +31,6 @@
-
-
-
-
-