diff --git a/t3lib/class.t3lib_div.php b/t3lib/class.t3lib_div.php index 3ddb723..4d12868 100644 --- a/t3lib/class.t3lib_div.php +++ b/t3lib/class.t3lib_div.php @@ -4672,6 +4672,19 @@ final class t3lib_div { if ($fileNotFound !== TRUE) { $result = is_array($LOCAL_LANG) ? $LOCAL_LANG : array(); } + + + // Hook to post-process data read by readLLfile. + // Note that the data is overwritten with the return value of the + // hook method, so double check that your return value is correct. + if( is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['afterReadLLfile']) ) { + foreach( $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['afterReadLLfile'] as $classRef ) { + $hookObj = t3lib_div::getUserObj($classRef); + $result = $hookObj->afterReadLLfile( $result, $fileRef, $langKey, $charset, $errorMode ); + } + } + + return $result; }