Skip to content

Commit

Permalink
SaveData is on by default for views.
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Feb 23, 2020
1 parent 5365340 commit 5da55b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5da55b4

Please sign in to comment.