1
0

Include JS in installer and upgrader

This should fix issue #80 by giving serendipity_editor.js of default to the
installer and  the normal template JS to the upgrader
This commit is contained in:
onli
2014-03-09 16:00:38 +01:00
parent 3ef2575788
commit 7f4dbb3e2e
3 changed files with 6 additions and 10 deletions

View File

@ -279,8 +279,9 @@ function serendipity_getTemplateFile($file, $key = 'serendipityHTTPPath') {
return $serendipity[$key] . $templateFile;
}
if (file_exists($serendipity['serendipityPath'] . $templateFile . ".tpl")) {
if (file_exists($serendipity['serendipityPath'] . $templateFile . ".tpl") && IS_installed) {
# catch .js.tpl files served via the template-plugin-api
# this won't work in the installer
return $serendipity['baseURL'] . 'index.php?/plugin/' . $file;
}
}