Skip to content

Commit

Permalink
TYPO3 9.5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
chrode committed Jan 18, 2021
1 parent 166316c commit 5158b1d
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Classes/ViewHelpers/Data/SplitViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public static function renderStatic(
$arguments['separator'] = self::DEFAULT_SEPARATOR;
}

if(!is_string($string)) {
return $string;
}

return explode($arguments['separator'], $string);
}
}
10 changes: 9 additions & 1 deletion Classes/ViewHelpers/Find/HighlightFieldViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;

/**
* View Helper for styling the content of index document’s result fields.
* View Helpe r for styling the content of index document’s result fields.
* Requires the query result object for finding the information as well as the
* document and the field to work on.
*
Expand All @@ -45,6 +45,14 @@
*/
class HighlightFieldViewHelper extends AbstractViewHelper
{

/**
* As this ViewHelper renders HTML, the output must not be escaped.
*
* @var bool
*/
protected $escapeOutput = false;

/**
* Registers own arguments.
*/
Expand Down
8 changes: 6 additions & 2 deletions Classes/ViewHelpers/Format/CSVLineViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
*/
class CSVLineViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {

/**
* As this ViewHelper renders HTML, the output must not be escaped.
*
* @var bool
*/
protected $escapeOutput = false;

/**
* Registers own arguments.
Expand All @@ -46,8 +52,6 @@ public function initializeArguments() {
$this->registerArgument('fieldEnclosure', 'string', 'The string to enclose the field content in', FALSE, '"');
}



/**
* @return string
*/
Expand Down
2 changes: 0 additions & 2 deletions Classes/ViewHelpers/Format/RegexpViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public function initializeArguments() {
$this->registerArgument('useMBEreg', 'boolean', 'Whether to use mb_ereg_replace() instead of preg_replace()', FALSE, FALSE);
}



/**
* @return string
*/
Expand Down
7 changes: 7 additions & 0 deletions Classes/ViewHelpers/Format/StripViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
*/
class StripViewHelper extends AbstractViewHelper
{
/**
* As this ViewHelper renders HTML, the output must not be escaped.
*
* @var bool
*/
protected $escapeOutput = false;

/**
* Registers own arguments.
*/
Expand Down
8 changes: 6 additions & 2 deletions Classes/ViewHelpers/Format/XMLViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
*/
class XMLViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {

/**
* As this ViewHelper renders HTML, the output must not be escaped.
*
* @var bool
*/
protected $escapeOutput = false;

/**
* Registers own arguments.
Expand All @@ -44,8 +50,6 @@ public function initializeArguments() {
$this->registerArgument('htmloutput', 'Boolean', 'Whether to output as HTML', FALSE, FALSE);
}



/**
* @return string
*/
Expand Down

0 comments on commit 5158b1d

Please sign in to comment.