fix and prepare installer path for js includement

References #80

needs a special eg installer_editor.js file for JS events
This commit is contained in:
Ian 2014-03-08 10:31:17 +01:00
parent 179f6a19d6
commit 8b951cbc17
2 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,8 @@ if (defined('S9Y_DATA_PATH')) {
$data['basedir'] = $basedir;
$data['phpversion'] = phpversion();
$data['versionInstalled'] = $serendipity['versionInstalled'];
$data['templatePath'] = $serendipity['templatePath'];
$data['serendipityHTTPPath'] = dirname($_SERVER['PHP_SELF']) . '/';
/**
* Checks a return code constant if it's successfull or an error and return HTML code

View File

@ -5,7 +5,8 @@
<meta charset="{$CONST.LANG_CHARSET}">
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{serendipity_getFile file='admin/style.css'}">
<link rel="stylesheet" href="{$serendipityHTTPPath}{serendipity_getFile file='admin/style.css'}">
<script src="{$serendipityHTTPPath}{$templatePath}jquery.js"></script>
</head>
<body id="serendipity_admin_page">
<header id="top">
@ -287,5 +288,8 @@
<footer id="meta">
<p>{$ADMIN_FOOTER_POWERED_BY|sprintf:$versionInstalled:$phpversion}</p>
</footer>
{* <script src="{$serendipityHTTPPath}{serendipity_getFile file='admin/js/installer_editor.js'}"></script> *}
</body>
</html>