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; ...@@ -26,6 +26,7 @@ namespace SGalinski\SgMail\ViewHelpers;
* This copyright notice MUST APPEAR in all copies of the script! * This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/ ***************************************************************/
use TYPO3\CMS\Core\Utility\VersionNumberUtility;
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper;
/** /**
...@@ -38,9 +39,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper { ...@@ -38,9 +39,11 @@ class ExtendedIfViewHelper extends AbstractConditionViewHelper {
*/ */
public function initializeArguments() { public function initializeArguments() {
parent::initializeArguments(); parent::initializeArguments();
$this->registerArgument( if(VersionNumberUtility::convertVersionNumberToInteger(TYPO3_version) < 8000000) {
'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE $this->registerArgument(
); 'condition', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
);
}
$this->registerArgument( $this->registerArgument(
'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE 'or', 'boolean', 'Condition expression conforming to Fluid boolean rules', FALSE, FALSE
); );
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<f:section name="iconButtons"> <f:section name="iconButtons">
</f:section> </f:section>
<f:section name="content"> <f:section name="content">
<f:flashMessages renderMode="div" /> <f:flashMessages/>
<f:if condition="{noPage}"> <f:if condition="{noPage}">
<f:then> <f:then>
<f:if condition="{pages}"> <f:if condition="{pages}">
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</f:section> </f:section>
<f:section name="content"> <f:section name="content">
<f:flashMessages renderMode="div" /> <f:flashMessages/>
<f:if condition="{queue -> f:count()} > 0"> <f:if condition="{queue -> f:count()} > 0">
<f:then> <f:then>
<div class="panel panel-default recordlist"> <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