|
@@ -146,8 +146,8 @@ discard block |
|
|
block discarded – undo |
|
146
|
146
|
{ |
|
147
|
147
|
$default_events = implode(',', self::DEFAULT_EVENTS); |
|
148
|
148
|
|
|
149
|
|
- $days = (int)$this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
|
150
|
|
- $filter = (bool)$this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER); |
|
|
149
|
+ $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
|
|
150
|
+ $filter = (bool) $this->getBlockSetting($block_id, 'filter', self::DEFAULT_FILTER); |
|
151
|
151
|
$infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_STYLE); |
|
152
|
152
|
$sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT); |
|
153
|
153
|
$events = $this->getBlockSetting($block_id, 'events', $default_events); |
|
@@ -256,8 +256,8 @@ discard block |
|
|
block discarded – undo |
|
256
|
256
|
$sort_style = Validator::parsedBody($request)->isInArrayKeys($this->sortStyles())->string('sortStyle'); |
|
257
|
257
|
$events = Validator::parsedBody($request)->array('events'); |
|
258
|
258
|
|
|
259
|
|
- $this->setBlockSetting($block_id, 'days', (string)$days); |
|
260
|
|
- $this->setBlockSetting($block_id, 'filter', (string)$filter); |
|
|
259
|
+ $this->setBlockSetting($block_id, 'days', (string) $days); |
|
|
260
|
+ $this->setBlockSetting($block_id, 'filter', (string) $filter); |
|
261
|
261
|
$this->setBlockSetting($block_id, 'infoStyle', $info_style); |
|
262
|
262
|
$this->setBlockSetting($block_id, 'sortStyle', $sort_style); |
|
263
|
263
|
$this->setBlockSetting($block_id, 'events', implode(',', $events)); |