Corrected some method calls and signatures
authorfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 20 Oct 2010 07:58:27 +0000 (07:58 +0000)
committerfrancois <francois@735d13b6-9817-0410-8766-e36946ffe9aa>
Wed, 20 Oct 2010 07:58:27 +0000 (07:58 +0000)
references #9543

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/overlays/branches/WORKSPACE_SUPPORT@39351 735d13b6-9817-0410-8766-e36946ffe9aa

class.tx_overlays.php

index ca1b861..f29ef02 100644 (file)
@@ -211,7 +211,7 @@ final class tx_overlays {
         * @param       string          $alias: alias to use for the table instead of its true name
         * @return      string          SQL to add to the WHERE clause (without "AND")
         */
-       public static function getVersioningCondition($table, $alias) {
+       public static function getVersioningCondition($table, $alias = '') {
                $workspaceCondition = '';
                if (empty($alias)) {
                        $alias = $table;
@@ -568,7 +568,7 @@ final class tx_overlays {
        public static function getOverlayRecords($table, $uids, $currentLanguage, $doVersioning) {
                if (is_array($uids) && count($uids) > 0) {
                        if (isset($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'])) {
-                               return self::getForeignOverlayRecords($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'], $uids, $currentLanguage);
+                               return self::getForeignOverlayRecords($GLOBALS['TCA'][$table]['ctrl']['transForeignTable'], $uids, $currentLanguage, $doVersioning);
                        } else {
                                return self::getLocalOverlayRecords($table, $uids, $currentLanguage, $doVersioning);
                        }