@@ 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(); |
@@ 297-306 (lines=10) @@ | ||
294 | $config, |
|
295 | $this |
|
296 | ); |
|
297 | if (is_object($settings) && property_exists($this, $config)) { |
|
298 | $this->{$config} = apply_filters('FHEE__EE_Config___load_core_config__' . $config, $settings); |
|
299 | //call configs populate method to ensure any defaults are set for empty values. |
|
300 | if (method_exists($settings, 'populate')) { |
|
301 | $this->{$config}->populate(); |
|
302 | } |
|
303 | if (method_exists($settings, 'do_hooks')) { |
|
304 | $this->{$config}->do_hooks(); |
|
305 | } |
|
306 | } |
|
307 | } |
|
308 | if (apply_filters('FHEE__EE_Config___load_core_config__update_espresso_config', false)) { |
|
309 | $this->update_espresso_config(); |