@@ 3045-3054 (lines=10) @@ | ||
3042 | ||
3043 | if ( $send_state_messages && in_array( $module, $active ) ) { |
|
3044 | $module_info = self::get_module( $module ); |
|
3045 | if ( ! $module_info['deactivate'] ) { |
|
3046 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
3047 | if ( $active_state = self::state( $state ) ) { |
|
3048 | $active_state = explode( ',', $active_state ); |
|
3049 | } else { |
|
3050 | $active_state = array(); |
|
3051 | } |
|
3052 | $active_state[] = $module; |
|
3053 | self::state( $state, implode( ',', $active_state ) ); |
|
3054 | } |
|
3055 | continue; |
|
3056 | } |
|
3057 | ||
@@ 3078-3088 (lines=11) @@ | ||
3075 | ||
3076 | $active[] = $module; |
|
3077 | ||
3078 | if ( $send_state_messages ) { |
|
3079 | ||
3080 | $state = in_array( $module, $other_modules ) ? 'reactivated_modules' : 'activated_modules'; |
|
3081 | if ( $active_state = self::state( $state ) ) { |
|
3082 | $active_state = explode( ',', $active_state ); |
|
3083 | } else { |
|
3084 | $active_state = array(); |
|
3085 | } |
|
3086 | $active_state[] = $module; |
|
3087 | self::state( $state, implode( ',', $active_state ) ); |
|
3088 | } |
|
3089 | ||
3090 | self::update_active_modules( $active ); |
|
3091 |