Replaced base_url use with config helper in GlobalVariables definition.
This commit is contained in:
parent
fb8aea0c3e
commit
6f5ac8c695
2 changed files with 2 additions and 2 deletions
|
@ -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) ?>;
|
||||
|
|
|
@ -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'
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue