summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/views/file/html_header.php7
-rw-r--r--application/views/header.php5
2 files changed, 6 insertions, 6 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index 520e2482a..a5a6da99f 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -3,14 +3,11 @@ $force_full_html = true;
include(FCPATH."application/views/header.php"); ?>
</div><!-- .container -->
-
<script type="text/javascript">
/* <![CDATA[ */
- window.appConfig = {
- lexers: <?php echo json_encode($lexers); ?>
- }
+ window.appConfig.lexers = <?php echo json_encode($lexers); ?>;
/* ]]> */
-</script>
+<script>
<?php if (isset($error_message)) {
include 'framgents/alert-wide.php';
diff --git a/application/views/header.php b/application/views/header.php
index 27fdbb92f..89a3c8617 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -26,8 +26,11 @@ if (is_cli_client() && !isset($force_full_html)) {
echo '<link href="'.link_with_mtime("/data/local/favicon.png").'" rel="shortcut icon">';
}
?>
- <script>
+ <script type="text/javascript">
+ /* <![CDATA[ */
var require = { baseUrl: '/data/js' };
+ window.appConfig = {};
+ /* ]]> */
</script>
<script data-main="main" src="/data/js/vendor/require.js"></script>
</head>