2020-09-25 14:44:13 +00:00
|
|
|
<?php
|
|
|
|
$aryWPMUConfig = get_site_option ( 'wpmu-piwik_global-settings', false );
|
|
|
|
if (self::$settings->checkNetworkActivation () && $aryWPMUConfig) {
|
|
|
|
foreach ( $aryWPMUConfig as $key => $value )
|
|
|
|
self::$settings->setGlobalOption ( $key, $value );
|
|
|
|
delete_site_option ( 'wpmu-piwik_global-settings' );
|
|
|
|
self::$settings->setGlobalOption ( 'auto_site_config', true );
|
|
|
|
} else
|
2020-04-07 13:03:04 +00:00
|
|
|
self::$settings->setGlobalOption ( 'auto_site_config', false );
|