Replaced base_url use with config helper in GlobalVariables definition.

This commit is contained in:
alext 2018-01-15 08:58:55 +01:00
parent fb8aea0c3e
commit 6f5ac8c695
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@
<script> <script>
var GlobalVariables = { var GlobalVariables = {
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>, 'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
'baseUrl': <?= json_encode(base_url()) ?> 'baseUrl': <?= json_encode(config('base_url')) ?>
}; };
var EALang = <?= json_encode($this->lang->language) ?>; var EALang = <?= json_encode($this->lang->language) ?>;

View file

@ -55,7 +55,7 @@
$(document).ready(function() { $(document).ready(function() {
var GlobalVariables = { var GlobalVariables = {
'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>, 'csrfToken': <?= json_encode($this->security->get_csrf_hash()) ?>,
'baseUrl': <?= json_encode(base_url()) ?>, 'baseUrl': <?= json_encode(config('base_url')) ?>,
'AJAX_SUCCESS': 'SUCCESS', 'AJAX_SUCCESS': 'SUCCESS',
'AJAX_FAILURE': 'FAILURE' 'AJAX_FAILURE': 'FAILURE'
}; };