Merge branch 'saas' of github.com:sourcefabric/Airtime into saas
This commit is contained in:
commit
ffeea2619d
|
@ -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,12 @@ 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/",
|
dirname(__FILE__) . "/../../public/", // Fixing this... -- Albert
|
||||||
|
"js/datatables/i18n/",
|
||||||
$locale.".txt")
|
$locale.".txt")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ class Application_Model_Locale
|
||||||
"hr_HR" => "Hrvatski",
|
"hr_HR" => "Hrvatski",
|
||||||
"hu_HU" => "Magyar",
|
"hu_HU" => "Magyar",
|
||||||
"it_IT" => "Italiano",
|
"it_IT" => "Italiano",
|
||||||
//"ja" => "日本語",
|
"ja_JP" => "日本語",
|
||||||
"ko_KR" => "한국어",
|
"ko_KR" => "한국어",
|
||||||
"pl_PL" => "Polski",
|
"pl_PL" => "Polski",
|
||||||
"pt_BR" => "Português (Brasil)",
|
"pt_BR" => "Português (Brasil)",
|
||||||
|
|
|
@ -183,6 +183,9 @@ class Application_Service_SchedulerService
|
||||||
->limit(1)
|
->limit(1)
|
||||||
->findOne();
|
->findOne();
|
||||||
|
|
||||||
|
if (is_null($showInstanceWithMostRecentSchedule)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
$instanceId = $showInstanceWithMostRecentSchedule->getDbId();
|
$instanceId = $showInstanceWithMostRecentSchedule->getDbId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -2216,6 +2216,8 @@ msgstr ""
|
||||||
msgid ""
|
msgid ""
|
||||||
"Warning: You cannot change this field while the show is currently playing"
|
"Warning: You cannot change this field while the show is currently playing"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Attention: Vous ne pouvez pas modifier ce champ alors que l'émission est en "
|
||||||
|
"cours de lecture"
|
||||||
|
|
||||||
#: airtime_mvc/application/controllers/LocaleController.php:181
|
#: airtime_mvc/application/controllers/LocaleController.php:181
|
||||||
msgid "No result found"
|
msgid "No result found"
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue