* @subpackage Administration.Site */ if ($site = elgg_get_site_entity()) { if (!$site instanceof ElggSite) { throw new InstallationException(elgg_echo('InvalidParameterException:NonElggSite')); } $site->url = get_input('wwwroot'); datalist_set('path', sanitise_filepath(get_input('path'))); datalist_set('dataroot', sanitise_filepath(get_input('dataroot'))); if (get_input('simplecache_enabled')) { elgg_enable_simplecache(); } else { elgg_disable_simplecache(); } if (get_input('system_cache_enabled')) { elgg_enable_system_cache(); } else { elgg_disable_system_cache(); } set_config('default_access', get_input('default_access', ACCESS_PRIVATE), $site->getGUID()); $user_default_access = get_input('allow_user_default_access') ? 1 : 0; set_config('allow_user_default_access', $user_default_access, $site->getGUID()); set_config('view', get_input('view'), $site->getGUID()); $debug = get_input('debug'); if ($debug) { set_config('debug', $debug, $site->getGUID()); } else { unset_config('debug', $site->getGUID()); } // allow new user registration? if (get_input('allow_registration', FALSE)) {
/** * @access private * @deprecated 1.9 Use elgg_enable_system_cache() */ function elgg_enable_filepath_cache() { elgg_deprecated_notice(__FUNCTION__ . ' is deprecated by elgg_enable_system_cache()', 1.9); elgg_enable_system_cache(); }
/** * @access private */ function elgg_enable_filepath_cache() { return elgg_enable_system_cache(); }