public function loadActivatedPlugins()
    {
        $pluginsToLoad = $this->getActivatedPluginsFromConfig();
        if (!SettingsPiwik::isInternetEnabled()) {
            $pluginsToLoad = array_filter($pluginsToLoad, function($name) {
                $plugin = Manager::makePluginClass($name);
                return !$plugin->requiresInternetConnection();
            });
        }
        $this->loadPlugins($pluginsToLoad);
    }
public function loadActivatedPlugins()
    {
        $pluginsToLoad = $this->getActivatedPluginsFromConfig();
        if (!SettingsPiwik::isInternetEnabled()) {
            $pluginsToLoad = array_filter($pluginsToLoad, function($name) {
                $plugin = Manager::makePluginClass($name);
                return !$plugin->requiresInternetConnection();
            });
        }
        $this->loadPlugins($pluginsToLoad);
    }
public function loadActivatedPlugins ( ) { $ pluginsToLoad = $ this -> getActivatedPluginsFromConfig ( ) ; if ( ! SettingsPiwik :: isInternetEnabled ( ) ) { $ pluginsToLoad = array_filter ( $ pluginsToLoad , function ( $ name ) { $ plugin = Manager :: makePluginClass ( $ name ) ; return ! $ plugin -> requiresInternetConnection ( ) ; } ) ; } $ this -> loadPlugins ( $ pluginsToLoad ) ; }
Loads plugin that are enabled
Loads plugin that are enabled