public static function enableMaintenanceMode()
    {
        $config = Config::getInstance();

        $tracker = $config->Tracker;
        $tracker['record_statistics'] = 0;
        $config->Tracker = $tracker;

        $general = $config->General;
        $general['maintenance_mode'] = 1;
        $config->General = $general;

        $config->forceSave();
    }
public static function enableMaintenanceMode()
    {
        $config = Config::getInstance();

        $tracker = $config->Tracker;
        $tracker['record_statistics'] = 0;
        $config->Tracker = $tracker;

        $general = $config->General;
        $general['maintenance_mode'] = 1;
        $config->General = $general;

        $config->forceSave();
    }
public static function enableMaintenanceMode ( ) { $ config = Config :: getInstance ( ) ; $ tracker = $ config -> Tracker ; $ tracker [ 'record_statistics' ] = 0 ; $ config -> Tracker = $ tracker ; $ general = $ config -> General ; $ general [ 'maintenance_mode' ] = 1 ; $ config -> General = $ general ; $ config -> forceSave ( ) ; }
Enables maintenance mode. Should be used for updates where Piwik will be unavailable
for a large amount of time.
Enables maintenance mode . Should be used for updates where Piwik will be unavailable for a large amount of time .