#8950: page id not availabe in TCEmain hook clearCachePostProc
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Sun, 13 Jul 2008 14:01:01 +0000 (14:01 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Sun, 13 Jul 2008 14:01:01 +0000 (14:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3885 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index c4bef38..fad14c7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 
        * Fixed bug #5476: links entered in <th>-tag with the RTE are not parsed on the frontend because parseFunc doesn't recognize <th> as cells (thanks to Daniel Ellermann)
        * Fixed bug #8682: no result check for setlocale via TypoScript
+       * Fixed bug #8950: page id not availabe in TCEmain hook clearCachePostProc
 
 2008-07-12  Martin Kutschker  <masi@typo3.org>
 
index 2eeb3c4..e6bf2a3 100755 (executable)
@@ -6934,9 +6934,9 @@ State was change by %s (username: %s)
                                                        if ($row_tmp = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res_tmp)) {
                                                                $list_cache[] = $row_tmp['pid'];
                                                        }
-                                               }
+                                               }                                               
                                        } else {        // For other tables than "pages", delete cache for the records "parent page".
-                                               $list_cache[] = intval($this->getPID($table,$uid));
+                                               $list_cache[] = $pageUid = intval($this->getPID($table,$uid));
                                        }
 
                                                // Call pre-processing function for clearing of cache for page ids:
@@ -6968,8 +6968,7 @@ State was change by %s (username: %s)
                                // Call post processing function for clear-cache:
                        global $TYPO3_CONF_VARS;
                        if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']))    {
-// FIXME $uid_page is undefined
-                               $_params = array('table' => $table,'uid' => $uid,'uid_page' => $uid_page,'TSConfig' => $TSConfig);
+                               $_params = array('table' => $table,'uid' => $uid,'uid_page' => $pageUid,'TSConfig' => $TSConfig);
                                foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'] as $_funcRef)     {
                                        t3lib_div::callUserFunction($_funcRef,$_params,$this);
                                }