Пример #1
0
/**
 * Loads plugins
 *
 * @deprecated 1.8 Use elgg_load_plugins()
 *
 * @return bool
 */
function load_plugins()
{
    elgg_deprecated_notice('load_plugins() is deprecated by elgg_load_plugins()', 1.8);
    return elgg_load_plugins();
}
Пример #2
0
        throw new InstallationException($msg);
    }
}
// confirm that the installation completed successfully
verify_installation();
// Autodetect some default configuration settings
set_default_config();
// needs to be set for links in html head
$viewtype = get_input('view', 'default');
$lastcached = datalist_get("simplecache_lastcached_{$viewtype}");
$CONFIG->lastcache = $lastcached;
// Trigger boot events for core. Plugins can't hook
// into this because they haven't been loaded yet.
elgg_trigger_event('boot', 'system');
// Load the plugins that are active
elgg_load_plugins();
elgg_trigger_event('plugins_boot', 'system');
// Trigger system init event for plugins
elgg_trigger_event('init', 'system');
// Regenerate the simple cache if expired.
// Don't do it on upgrade because upgrade does it itself.
// @todo - move into function and perhaps run off init system event
if (!defined('UPGRADING')) {
    $lastupdate = datalist_get("simplecache_lastupdate_{$viewtype}");
    $lastcached = datalist_get("simplecache_lastcached_{$viewtype}");
    if ($lastupdate == 0 || $lastcached < $lastupdate) {
        elgg_regenerate_simplecache($viewtype);
        $lastcached = datalist_get("simplecache_lastcached_{$viewtype}");
    }
    $CONFIG->lastcache = $lastcached;
}