diff --git a/system/Common.php b/system/Common.php index 3f5bf0578549..941ad4f1d2e9 100644 --- a/system/Common.php +++ b/system/Common.php @@ -1060,7 +1060,7 @@ function view(string $name, array $data = [], array $options = []): string */ $renderer = Services::renderer(); - $saveData = null; + $saveData = true; if (array_key_exists('saveData', $options) && $options['saveData'] === true) { $saveData = (bool) $options['saveData']; diff --git a/system/View/View.php b/system/View/View.php index b78a5ae4c024..01241dd60d86 100644 --- a/system/View/View.php +++ b/system/View/View.php @@ -498,7 +498,7 @@ public function renderSection(string $sectionName) * * @return string */ - public function include(string $view, array $options = null, $saveData = null): string + public function include(string $view, array $options = null, $saveData = true): string { return $this->render($view, $options, $saveData); }