From 809983447ec72f6f9905265f929e88b8bbd46dfb Mon Sep 17 00:00:00 2001 From: Sunry <730976+hplc@users.noreply.github.com> Date: Fri, 1 Dec 2017 11:32:25 +0800 Subject: [PATCH] 500 error can't find url() function Define url() function. --- files/templates/header.htm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/templates/header.htm b/files/templates/header.htm index 0606c9e..381e5ff 100644 --- a/files/templates/header.htm +++ b/files/templates/header.htm @@ -53,6 +53,10 @@ -- send as HTML5 http.prepare_content("text/html") + local function url(prefix, name) + return controller .. "/" .. prefix .. "/" .. name .. "/" + end + local function nodeurl(prefix, name, query) local u = url(prefix, name) if query then