Skip to content

Commit

Permalink
Revert "Prevent message-stack from being consumed before reload"
Browse files Browse the repository at this point in the history
This reverts commit f32ebcd.
  • Loading branch information
martinschumann committed Sep 29, 2020
1 parent f32ebcd commit b0e7201
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Resources/contao/drivers/DC_File.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function edit()
</form>';

// Begin the form (-> DO NOT CHANGE THIS ORDER -> this way the onsubmit attribute of the form can be changed by a field)
$return = ((Environment::get('requestMethod') !== 'POST') ? Message::generate() : '') . ($this->noReload ? '
$return = Message::generate() . ($this->noReload ? '
<p class="tl_error">'.$GLOBALS['TL_LANG']['ERR']['general'].'</p>' : '') . '
<div id="tl_buttons">
<a href="'.$this->getReferer(true).'" class="header_back" title="'.StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['backBTTitle']).'" accesskey="b" onclick="Backend.getScrollOffset()">'.$GLOBALS['TL_LANG']['MSC']['backBT'].'</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/drivers/DC_Folder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ public function edit()
</form>';

// Begin the form (-> DO NOT CHANGE THIS ORDER -> this way the onsubmit attribute of the form can be changed by a field)
$return = $version . ((Environment::get('requestMethod') !== 'POST') ? Message::generate() : '') . ($this->noReload ? '
$return = $version . Message::generate() . ($this->noReload ? '
<p class="tl_error">'.$GLOBALS['TL_LANG']['ERR']['general'].'</p>' : '') . '
<div id="tl_buttons">
<a href="'.$this->getReferer(true).'" class="header_back" title="'.StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['backBTTitle']).'" accesskey="b" onclick="Backend.getScrollOffset()">'.$GLOBALS['TL_LANG']['MSC']['backBT'].'</a>
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/contao/drivers/DC_Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ public function edit($intId=null, $ajaxId=null)
}

// Begin the form (-> DO NOT CHANGE THIS ORDER -> this way the onsubmit attribute of the form can be changed by a field)
$return = $version . ((Environment::get('requestMethod') !== 'POST') ? Message::generate() : '') . ($this->noReload ? '
$return = $version . Message::generate() . ($this->noReload ? '
<p class="tl_error">'.$GLOBALS['TL_LANG']['ERR']['general'].'</p>' : '') . '
<div id="tl_buttons">' . (Input::get('nb') ? '&nbsp;' : '
<a href="'.$this->getReferer(true).'" class="header_back" title="'.StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['backBTTitle']).'" accesskey="b" onclick="Backend.getScrollOffset()">'.$GLOBALS['TL_LANG']['MSC']['backBT'].'</a>') . '
Expand Down

0 comments on commit b0e7201

Please sign in to comment.