diff --git a/docker/suitecrm-image/suitecrm/scripts/suitecrm/php/rebuild-suitecrm.php b/docker/suitecrm-image/suitecrm/scripts/suitecrm/php/rebuild-suitecrm.php index 4a2382379..97d0d242b 100644 --- a/docker/suitecrm-image/suitecrm/scripts/suitecrm/php/rebuild-suitecrm.php +++ b/docker/suitecrm-image/suitecrm/scripts/suitecrm/php/rebuild-suitecrm.php @@ -93,16 +93,6 @@ function usage($error = '') { 'cache/modules/Teams/TeamSetCache.php' ); -// foreach ($files_to_remove as $file) { -// $file = SugarAutoloader::normalizeFilePath($file); -// if (SugarAutoloader::fileExists($file)) { -// SugarAutoloader::unlink($file); -// } -// } - -// // rebuild the autoloader once first, to be aware of new files -// SugarAutoLoader::buildCache(); - // repair $repair = new RepairAndClear(); $repair->repairAndClearAll(array('clearAll'), array($mod_strings['LBL_ALL_MODULES']), true, false, ''); @@ -111,9 +101,6 @@ function usage($error = '') { LanguageManager::removeJSLanguageFiles(); LanguageManager::clearLanguageCache(); -// rebuild some stuff -// SugarAutoLoader::buildCache(); - // quick load of all beans global $beanList; $full_module_list = array_merge($beanList, $app_list_strings['moduleList']); @@ -129,9 +116,12 @@ function usage($error = '') { $app_list_strings = return_app_list_strings_language($current_language); $app_strings = return_application_language($current_language); -// load api -// $sd = new ServiceDictionary(); -// $sd->buildAllDictionaries(); + +echo 'Repairing JS files...' . PHP_EOL; + +$_REQUEST['js_admin_repair'] = 'repair'; + +require_once('/suitecrm/public/legacy/modules/Administration/callJSRepair.php'); // when the other register shutdown functionalities complete, exit this script register_shutdown_function(