diff options
Diffstat (limited to 'application/views')
-rw-r--r-- | application/views/file/upload_form.php | 4 | ||||
-rw-r--r-- | application/views/header.php | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index f9f40475d..8fc7b9f59 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -70,8 +70,8 @@ <script type="text/javascript"> /* <![CDATA[ */ - var max_upload_size = "<?php echo $max_upload_size; ?>"; - var max_files_per_upload = "<?php echo ini_get("max_file_uploads"); ?>"; + window.appConfig.maxUploadSize = "<?php echo $max_upload_size; ?>"; + window.appConfig.maxFilesPerUpload = "<?php echo ini_get("max_file_uploads"); ?>"; /* ]]> */ </script> diff --git a/application/views/header.php b/application/views/header.php index f77487ba9..89a3c8617 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -29,10 +29,7 @@ if (is_cli_client() && !isset($force_full_html)) { <script type="text/javascript"> /* <![CDATA[ */ var require = { baseUrl: '/data/js' }; - window.appConfig = { - maxUploadSize: <?php echo $max_upload_size; ?>, - maxFilesPerUpload: <?php echo ini_get("max_file_uploads"); ?> - }; + window.appConfig = {}; /* ]]> */ </script> <script data-main="main" src="/data/js/vendor/require.js"></script> |