Added feature #13948: Hookrequest - tslib_fe pre/post process for settingLanguage...
authorSteffen Kamper <info@sk-typo3.de>
Sat, 10 Apr 2010 21:08:10 +0000 (21:08 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 10 Apr 2010 21:08:10 +0000 (21:08 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7275 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index f9afa72..64dd254 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,9 @@
 2010-04-10  Steffen Kamper  <info@sk-typo3.de>
 
+       * Added feature #13948: Hookrequest - tslib_fe pre/post process for settingLanguage() (thanks to Tolleiv Nietsch)
        * Added feature #13947: Hookrequest - tslib_menu should provide hook for further filtering (thanks to Tolleiv Nietsch)
        * Added feature #13952: Hookrequest - t3lib_page::getPageOverlay (thanks to Tolleiv Nietsch)
-       * Fixed bug #485: Hookrequest for ~ TemplaVoila unlink doesn't work for Non-Admins (thanks to Tolleiv Nietsch)
+       * Added feature #485: Hookrequest for ~ TemplaVoila unlink doesn't work for Non-Admins (thanks to Tolleiv Nietsch)
 
 2010-04-10  Stanislas Rolland  <typo3@sjbr.ca>
 
index 08e94de..809cc7f 100644 (file)
         */
        function settingLanguage()      {
 
+               if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess']))   {
+                       $_params = array();
+                       foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_preProcess'] as $_funcRef)   {
+                               t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                       }
+               }
+
                        // Get values from TypoScript:
                $this->sys_language_uid = $this->sys_language_content = intval($this->config['config']['sys_language_uid']);
                list($this->sys_language_mode,$sys_language_content) = t3lib_div::trimExplode(';', $this->config['config']['sys_language_mode']);
                        list($tN,$fN) = explode(':',$TF);
                        $this->TCAcachedExtras[$tN]['l10n_mode'][$fN] = 'exclude';
                }
+
+               if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess']))  {
+                       $_params = array();
+                       foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['settingLanguage_postProcess'] as $_funcRef)  {
+                               t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                       }
+               }
        }
 
        /**