Merge pull request #1578 from marcoAntonioNina/master

Improvement import languages
This commit is contained in:
julceslauhub
2013-04-17 12:43:52 -07:00
3 changed files with 14 additions and 9 deletions

View File

@@ -97,6 +97,12 @@ try {
);
$configuration->saveConfig( 'LANGUAGE_META', $importResults->lang );
$dir = PATH_CORE . 'content' . PATH_SEP . 'translations' . PATH_SEP;
if (! is_writable( $dir )) {
throw new Exception( G::LoadTranslation( 'ID_TRANSLATIONS_FOLDER_PERMISSIONS' ) );
}
G::uploadFile($languageFile, $dir, $languageFilename, 0777);
ini_set( 'max_execution_time', $sMaxExecutionTime );
} catch (Exception $oError) {