@@ 93-97 (lines=5) @@ | ||
90 | public function getAppSettings() { |
|
91 | $result = []; |
|
92 | $keys = $this->config->getAppKeys(Application::APPNAME); |
|
93 | foreach ($keys as $key) { |
|
94 | $value = $this->getAppValueArray($key); |
|
95 | $value = $value === 'yes' ? true : $value; |
|
96 | $result[$key] = $value === 'no' ? false : $value; |
|
97 | } |
|
98 | ||
99 | $keys = $this->config->getAppKeys(self::WATERMARK_APP_NAMESPACE); |
|
100 | foreach ($keys as $key) { |
|
@@ 100-106 (lines=7) @@ | ||
97 | } |
|
98 | ||
99 | $keys = $this->config->getAppKeys(self::WATERMARK_APP_NAMESPACE); |
|
100 | foreach ($keys as $key) { |
|
101 | if (strpos($key, 'watermark_') === 0) { |
|
102 | $value = $this->getAppValueArray($key); |
|
103 | $value = $value === 'yes' ? true : $value; |
|
104 | $result[$key] = $value === 'no' ? false : $value; |
|
105 | } |
|
106 | } |
|
107 | return $result; |
|
108 | } |
|
109 |