Merge remote-tracking branch 'origin/2.5.x' into saas
This commit is contained in:
commit
142060d600
5 changed files with 665 additions and 661 deletions
|
@ -198,6 +198,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
||||||
{
|
{
|
||||||
$front = Zend_Controller_Front::getInstance();
|
$front = Zend_Controller_Front::getInstance();
|
||||||
$router = $front->getRouter();
|
$router = $front->getRouter();
|
||||||
|
$front->setBaseUrl(Application_Common_OsPath::getBaseDir());
|
||||||
|
|
||||||
$router->addRoute(
|
$router->addRoute(
|
||||||
'password-change',
|
'password-change',
|
||||||
|
|
|
@ -65,7 +65,9 @@ class Application_Common_OsPath{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getBaseDir() {
|
public static function getBaseDir() {
|
||||||
$baseUrl = dirname($_SERVER['SCRIPT_NAME']);
|
|
||||||
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
$baseUrl = $CC_CONFIG['baseDir'];
|
||||||
|
|
||||||
if ($baseUrl[0] != "/") {
|
if ($baseUrl[0] != "/") {
|
||||||
$baseUrl = "/".$baseUrl;
|
$baseUrl = "/".$baseUrl;
|
||||||
|
@ -75,6 +77,7 @@ class Application_Common_OsPath{
|
||||||
$baseUrl = $baseUrl."/";
|
$baseUrl = $baseUrl."/";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $baseUrl;
|
return $baseUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,12 +12,11 @@ class LocaleController extends Zend_Controller_Action
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
header("Content-type: text/javascript");
|
header("Content-type: text/javascript");
|
||||||
|
|
||||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
|
||||||
$locale = Application_Model_Preference::GetLocale();
|
$locale = Application_Model_Preference::GetLocale();
|
||||||
echo "var datatables_dict =" .
|
echo "var datatables_dict =" .
|
||||||
file_get_contents(Application_Common_OsPath::join(
|
file_get_contents(Application_Common_OsPath::join(
|
||||||
dirname(__file__),
|
$_SERVER["DOCUMENT_ROOT"],
|
||||||
"../../public/js/datatables/i18n/",
|
"js/datatables/i18n/",
|
||||||
$locale.".txt")
|
$locale.".txt")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue