| @@ 73-80 (lines=8) @@ | ||
| 70 | } |
|
| 71 | ||
| 72 | $defaultSetting = $this->getDefaultFromSetting($method, $type); |
|
| 73 | if (is_bool($defaultSetting)) { |
|
| 74 | return (bool) $this->config->getUserValue( |
|
| 75 | $user, |
|
| 76 | 'activity', |
|
| 77 | 'notify_' . $method . '_' . $type, |
|
| 78 | $defaultSetting |
|
| 79 | ); |
|
| 80 | } |
|
| 81 | ||
| 82 | return (int) $this->config->getUserValue( |
|
| 83 | $user, |
|
| @@ 97-103 (lines=7) @@ | ||
| 94 | */ |
|
| 95 | public function getConfigSetting($method, $type) { |
|
| 96 | $defaultSetting = $this->getDefaultFromSetting($method, $type); |
|
| 97 | if (is_bool($defaultSetting)) { |
|
| 98 | return (bool) $this->config->getAppValue( |
|
| 99 | 'activity', |
|
| 100 | 'notify_' . $method . '_' . $type, |
|
| 101 | $defaultSetting |
|
| 102 | ); |
|
| 103 | } |
|
| 104 | ||
| 105 | return (int) $this->config->getAppValue( |
|
| 106 | 'activity', |
|