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>
var GlobalVariables = {
'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) ?>;

View File

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