From 1ff892e5fd225511c388c088cf155360a97d94b3 Mon Sep 17 00:00:00 2001 From: Christian Jul Jensen Date: Thu, 7 Apr 2005 12:57:44 +0000 Subject: [PATCH] * Added hook in GIFBUILDER to preprocess configuration git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@609 709f56b5-9817-0410-a4d7-c38de5d9e867 --- typo3/sysext/cms/tslib/class.tslib_gifbuilder.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php b/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php index c44b998b9759..0f75191146c4 100755 --- a/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php +++ b/typo3/sysext/cms/tslib/class.tslib_gifbuilder.php @@ -132,6 +132,21 @@ class tslib_gifBuilder extends t3lib_stdGraphic { $this->setup = $conf; $this->data = $data; + /* Hook preprocess gifbuilder conf + * Added by Julle for 3.8.0 + * + * Let's you pre-process the gifbuilder configuration. for + * example you can split a string up into lines and render each + * line as TEXT obj, see extension julle_gifbconf + */ + + if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_gifbuilder.php']['gifbuilder-ConfPreProcess'])) { + foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_gifbuilder.php']['gifbuilder-ConfPreProcess'] as $_funcRef) { + $_params = $this->setup; + $this->setup = t3lib_div::callUserFunction($_funcRef,$_params,$this); + } + } + // Initializing global Char Range Map $this->charRangeMap = array(); if (is_array($GLOBALS['TSFE']->tmpl->setup['_GIFBUILDER.']['charRangeMap.'])) { -- 2.20.1