PM-2370 "Nuestra error al instalar rc4" SOLVED
> Code Isuue: Nuestra error al instalar rc4 > Solution: Al instalar processmaker rc4 se mostraba un error de path, se corrige con el path correcto.
This commit is contained in:
@@ -692,16 +692,22 @@ ob_start();
|
|||||||
|
|
||||||
// Rebuild the base Workflow translations if not exists
|
// Rebuild the base Workflow translations if not exists
|
||||||
if (! is_file( PATH_LANGUAGECONT . 'translation.en' )) {
|
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);
|
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.
|
// TODO: Verify if the language set into url is defined in translations env.
|
||||||
if (SYS_LANG != 'en' && ! is_file( PATH_LANGUAGECONT . 'translation.' . SYS_LANG )) {
|
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);
|
require_once ($pathFile);
|
||||||
$fields = Translation::generateFileTranslation( SYS_LANG );
|
|
||||||
|
$pmTranslation = new Translation();
|
||||||
|
$fields = $pmTranslation->generateFileTranslation(SYS_LANG);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup plugins
|
// Setup plugins
|
||||||
|
|||||||
Reference in New Issue
Block a user