Merge branch 'dashboards2' of bitbucket.org:colosa/processmaker into dashboards2
This commit is contained in:
@@ -692,16 +692,22 @@ ob_start();
|
||||
|
||||
// Rebuild the base Workflow translations if not exists
|
||||
if (! is_file( PATH_LANGUAGECONT . 'translation.en' )) {
|
||||
$pathFile = $filter->validateInput("classes/model/Translation.php",'path');
|
||||
$pathFile = $filter->validateInput(PATH_CLASSES . "model" . PATH_SEP . "Translation.php", "path");
|
||||
|
||||
require_once ($pathFile);
|
||||
$fields = Translation::generateFileTranslation( 'en' );
|
||||
|
||||
$pmTranslation = new Translation();
|
||||
$fields = $pmTranslation->generateFileTranslation("en");
|
||||
}
|
||||
|
||||
// TODO: Verify if the language set into url is defined in translations env.
|
||||
if (SYS_LANG != 'en' && ! is_file( PATH_LANGUAGECONT . 'translation.' . SYS_LANG )) {
|
||||
$pathFile = $filter->validateInput("classes/model/Translation.php",'path');
|
||||
$pathFile = $filter->validateInput(PATH_CLASSES . "model" . PATH_SEP . "Translation.php", "path");
|
||||
|
||||
require_once ($pathFile);
|
||||
$fields = Translation::generateFileTranslation( SYS_LANG );
|
||||
|
||||
$pmTranslation = new Translation();
|
||||
$fields = $pmTranslation->generateFileTranslation(SYS_LANG);
|
||||
}
|
||||
|
||||
// Setup plugins
|
||||
@@ -894,6 +900,7 @@ if (! defined( 'EXECUTE_BY_CRON' )) {
|
||||
$noLoginFiles[] = 'appFolderAjax';
|
||||
$noLoginFiles[] = 'steps_Ajax';
|
||||
$noLoginFiles[] = 'proxyCasesList';
|
||||
$noLoginFiles[] = 'proxyNewCasesList';
|
||||
$noLoginFiles[] = 'casesStartPage_Ajax';
|
||||
$noLoginFiles[] = 'appProxy';
|
||||
$noLoginFiles[] = 'cases_Ajax';
|
||||
|
||||
Reference in New Issue
Block a user