Followup to bugfix #8950: clean up code
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 18 Sep 2008 21:10:20 +0000 (21:10 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Thu, 18 Sep 2008 21:10:20 +0000 (21:10 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4148 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tcemain.php

index 001e634..c9678a6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-18  Martin Kutschker  <masi@typo3.org>
+
+       * Followup to bugfix #8950: clean up code
+
 2008-09-18  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9331: htmlArea RTE Acronym feature: List of unabridged terms shows wrong values
index ce55418..77d39dd 100755 (executable)
@@ -6876,6 +6876,7 @@ State was change by %s (username: %s)
                global $TCA, $TYPO3_CONF_VARS;
 
                $uid = intval($uid);
+               $pageUid = 0;
                if (is_array($TCA[$table]) && $uid > 0) {
 
                                // Get Page TSconfig relavant:
@@ -6934,7 +6935,7 @@ 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[] = $pageUid = intval($this->getPID($table,$uid));
                                        }
@@ -6966,7 +6967,6 @@ 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']))    {
                                $_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)     {