Fixed base URL

Conflicts:
	airtime_mvc/application/controllers/LocaleController.php
This commit is contained in:
Albert Santoni 2014-08-14 17:22:01 -04:00 committed by drigato
parent 716cc5a754
commit 4c1e6d3fe3
3 changed files with 10 additions and 7 deletions

View file

@ -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")
);
}