moving the cache file translation.es location in ./workflow/engine/content/translation to shared directory to solve the problem in balanced environments and write permissions

This commit is contained in:
Erik Amaru Ortiz
2010-12-23 22:30:39 +00:00
parent b575d9098c
commit 4792ab0512
8 changed files with 53 additions and 23 deletions

View File

@@ -388,6 +388,21 @@ $startingTime = array_sum(explode(' ',microtime()));
session_start();
ob_start();
//Rebuild the base Workflow translations if not exists
if( ! is_file(PATH_LANGUAGECONT . 'translation.en') ){
require_once ( "classes/model/Translation.php" );
$fields = Translation::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) ){
require_once ( "classes/model/Translation.php" );
$fields = Translation::generateFileTranslation(SYS_LANG);
}
//********* Setup plugins *************
$oPluginRegistry->setupPlugins(); //get and setup enabled plugins
$avoidChangedWorkspaceValidation = false;