Added feature #10869: Integrate hook to pre-process the frontend rendering
authorOliver Hader <oliver.hader@typo3.org>
Wed, 29 Apr 2009 14:00:28 +0000 (14:00 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 29 Apr 2009 14:00:28 +0000 (14:00 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5375 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/index_ts.php

index 3361ac5..3ae5346 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-29  Oliver Hader  <oliver@typo3.org>
+
+       * Added feature #10869: Integrate hook to pre-process the frontend rendering
+
 2009-04-28  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #11003: htmlArea RTE: empty mutuallyExclusiveClasses array may cause js error
index 4f672a9..cc6d5e3 100644 (file)
@@ -133,6 +133,17 @@ if (!get_magic_quotes_gpc())       {
 }
 
 
+// Hook to preprocess the current request:
+if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'])) {
+       foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'] as $hookFunction) {
+               $hookParameters = array();
+               t3lib_div::callUserFunction($hookFunction, $hookParameters, $hookParameters);
+       }
+       unset($hookFunction);
+       unset($hookParameters);
+}
+
+
 // *********************
 // Look for extension ID which will launch alternative output engine
 // *********************