Skip to content

Commit 5da55b4

Browse files
committed
SaveData is on by default for views.
1 parent 5365340 commit 5da55b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ function view(string $name, array $data = [], array $options = []): string
10601060
*/
10611061
$renderer = Services::renderer();
10621062

1063-
$saveData = null;
1063+
$saveData = true;
10641064
if (array_key_exists('saveData', $options) && $options['saveData'] === true)
10651065
{
10661066
$saveData = (bool) $options['saveData'];

system/View/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public function renderSection(string $sectionName)
498498
*
499499
* @return string
500500
*/
501-
public function include(string $view, array $options = null, $saveData = null): string
501+
public function include(string $view, array $options = null, $saveData = true): string
502502
{
503503
return $this->render($view, $options, $saveData);
504504
}

0 commit comments

Comments
 (0)