| @@ 100-108 (lines=9) @@ | ||
| 97 | do_action( 'AHEE__EE_Network_Config___load_config__start', $this ); | |
| 98 | $config = $this->get_config(); | |
| 99 | 		foreach ( $config as $config_prop => $settings ) { | |
| 100 | 			if ( is_object( $settings ) && property_exists( $this, $config_prop ) ) { | |
| 101 | 				$this->{$config_prop} = apply_filters( 'FHEE__EE_Network_Config___load_config__config_settings', $settings, $config_prop, $this ); | |
| 102 | 				if ( method_exists( $settings, 'populate' ) ) { | |
| 103 | 					$this->{$config_prop}->populate(); | |
| 104 | } | |
| 105 | 				if ( method_exists( $settings, 'do_hooks' ) ) { | |
| 106 | 					$this->{$config_prop}->do_hooks(); | |
| 107 | } | |
| 108 | } | |
| 109 | } | |
| 110 | 		if ( apply_filters( 'FHEE__EE_Network_Config___load_config__update_network_config', false ) ) { | |
| 111 | $this->update_config(); | |
| @@ 288-297 (lines=10) @@ | ||
| 285 | $config, | |
| 286 | $this | |
| 287 | ); | |
| 288 |             if (is_object($settings) && property_exists($this, $config)) { | |
| 289 |                 $this->{$config} = apply_filters('FHEE__EE_Config___load_core_config__' . $config, $settings); | |
| 290 | //call configs populate method to ensure any defaults are set for empty values. | |
| 291 |                 if (method_exists($settings, 'populate')) { | |
| 292 |                     $this->{$config}->populate(); | |
| 293 | } | |
| 294 |                 if (method_exists($settings, 'do_hooks')) { | |
| 295 |                     $this->{$config}->do_hooks(); | |
| 296 | } | |
| 297 | } | |
| 298 | } | |
| 299 |         if (apply_filters('FHEE__EE_Config___load_core_config__update_espresso_config', false)) { | |
| 300 | $this->update_espresso_config(); | |