Skip to content

Commit

Permalink
Template: display_one_col_template may not clear flash messages - ref…
Browse files Browse the repository at this point in the history
…s BT#19664
  • Loading branch information
AngelFQC committed Feb 15, 2022
1 parent a1837be commit 2d3120a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/lib/template.lib.php
Expand Up @@ -342,10 +342,10 @@ public function set_actions($actions)
/**
* Shortcut to display a 1 col layout (index.php).
* */
public function display_one_col_template()
public function display_one_col_template(bool $clearFlashMessages = true)
{
$tpl = $this->get_template('layout/layout_1_col.tpl');
$this->display($tpl);
$this->display($tpl, $clearFlashMessages);
}

/**
Expand Down

0 comments on commit 2d3120a

Please sign in to comment.