getModuleConfig('message'); if($config->skin) { $config_parse = explode('.', $config->skin); if (count($config_parse) > 1) { $template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]); if(is_dir($template_path)) return true; } } return false; } /** * Update * @return Object **/ function moduleUpdate() { if(!is_dir("./files/member_extra_info/new_message_flags")) FileHandler::makeDir('./files/member_extra_info/new_message_flags'); $oModuleModel = &getModel('module'); $config = $oModuleModel->getModuleConfig('message'); if($config->skin) { $config_parse = explode('.', $config->skin); if (count($config_parse) > 1) { $template_path = sprintf('./themes/%s/modules/communication/', $config_parse[0]); if(is_dir($template_path)) { $config->skin = implode('|@|', $config_parse); $oModuleController = &getController('module'); $oModuleController->updateModuleConfig('communication', $config); } } } return new Object(0, 'success_updated'); } /** * Re-generate the cache file * @return void **/ function recompileCache() { } } ?>