diff --git a/src/Resources/contao/drivers/DC_File.php b/src/Resources/contao/drivers/DC_File.php index 0defe37b3d..4d89c1ad28 100644 --- a/src/Resources/contao/drivers/DC_File.php +++ b/src/Resources/contao/drivers/DC_File.php @@ -299,7 +299,7 @@ public function edit() '; // 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 ? '

'.$GLOBALS['TL_LANG']['ERR']['general'].'

' : '') . '
'.$GLOBALS['TL_LANG']['MSC']['backBT'].' diff --git a/src/Resources/contao/drivers/DC_Folder.php b/src/Resources/contao/drivers/DC_Folder.php index dcd1f685c6..a7d9876129 100644 --- a/src/Resources/contao/drivers/DC_Folder.php +++ b/src/Resources/contao/drivers/DC_Folder.php @@ -1487,7 +1487,7 @@ public function edit() '; // 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 ? '

'.$GLOBALS['TL_LANG']['ERR']['general'].'

' : '') . '
'.$GLOBALS['TL_LANG']['MSC']['backBT'].' diff --git a/src/Resources/contao/drivers/DC_Table.php b/src/Resources/contao/drivers/DC_Table.php index 6629b9c7c8..d8f7aac574 100644 --- a/src/Resources/contao/drivers/DC_Table.php +++ b/src/Resources/contao/drivers/DC_Table.php @@ -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 ? '

'.$GLOBALS['TL_LANG']['ERR']['general'].'

' : '') . '
' . (Input::get('nb') ? ' ' : ' '.$GLOBALS['TL_LANG']['MSC']['backBT'].'') . '