Skip to content
Snippets Groups Projects
Commit 74e45852 authored by Paul Ilea's avatar Paul Ilea
Browse files

[TASK] typo3v8 compatibility updates

fix ExtendedIf viewhelper
fix FlasMessages viewhelper calls
parent 38c22f73
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ namespace SGalinski\SgMail\ViewHelpers;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
/**
......@@ -38,9 +39,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper {
*/
public function initializeArguments() {
parent::initializeArguments();
$this->registerArgument(
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
if(VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
$this->registerArgument(
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
}
$this->registerArgument(
'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
......
......@@ -5,7 +5,7 @@
<f:section name="iconButtons">
</f:section>
<f:section name="content">
<f:flashMessages renderMode="div" />
<f:flashMessages/>
<f:if condition="{noPage}">
<f:then>
<f:if condition="{pages}">
......
......@@ -6,7 +6,7 @@
</f:section>
<f:section name="content">
<f:flashMessages renderMode="div" />
<f:flashMessages/>
<f:if condition="{queue -> f:count()} > 0">
<f:then>
<div class="panel panel-default recordlist">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment