Fixed base URL
Conflicts: airtime_mvc/application/controllers/LocaleController.php
This commit is contained in:
parent
716cc5a754
commit
4c1e6d3fe3
3 changed files with 10 additions and 7 deletions
|
@ -12,12 +12,11 @@ class LocaleController extends Zend_Controller_Action
|
|||
$this->_helper->viewRenderer->setNoRender(true);
|
||||
header("Content-type: text/javascript");
|
||||
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$locale = Application_Model_Preference::GetLocale();
|
||||
echo "var datatables_dict =" .
|
||||
file_get_contents(Application_Common_OsPath::join(
|
||||
dirname(__file__),
|
||||
"../../public/js/datatables/i18n/",
|
||||
$_SERVER["DOCUMENT_ROOT"],
|
||||
"js/datatables/i18n/",
|
||||
$locale.".txt")
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue