Skip to content

Commit 059a114

Browse files
authored
Merge pull request #4 from mlocati/avoid-accessing-undefined-vars
Avoid accessing undefined variables
2 parents a4e36de + ede0c29 commit 059a114

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

blocks/pure_cookies_notice/controller.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,16 @@ public function on_start()
240240

241241
public function add()
242242
{
243+
$this->set('title', '');
244+
$this->set('agreeText', '');
243245
$this->set('position', 'bottom');
246+
$this->set('textColor', '');
247+
$this->set('linkColor', '');
248+
$this->set('backgroundColor', '');
249+
$this->set('sitewideCookie', false);
250+
$this->set('onlyForEU', false);
251+
$this->set('interactionImpliesOk', false);
252+
$this->set('sitewideCookie', true);
244253
$this->edit();
245254
}
246255

blocks/pure_cookies_notice/form.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
/* @var Concrete\Core\Form\Service\Form $form */
1414
/* @var Concrete\Core\Block\View\BlockView $this */
1515
/* @var Concrete\Core\Block\View\BlockView $view */
16+
17+
/* @var string $title */
18+
/* @var string $agreeText */
19+
/* @var string $textColor */
20+
/* @var string $linkColor */
21+
/* @var string $backgroundColor */
22+
/* @var array $positions */
23+
/* @var string $position */
24+
/* @var bool $geolocationSupported */
25+
/* @var bool|string $onlyForEU */
26+
/* @var bool|string $interactionImpliesOk */
27+
/* @var bool|string $sitewideCookie */
1628
?>
1729
<div class="pure-cookies-notice-edit-container">
1830

0 commit comments

Comments
 (0)