Follow-up to #14465: Missing argument when rendering language preview in page module
authorOliver Hader <oliver.hader@typo3.org>
Wed, 26 May 2010 22:39:36 +0000 (22:39 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 26 May 2010 22:39:36 +0000 (22:39 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7685 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/layout/class.tx_cms_layout.php

index 8247c04..73188ad 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-27  Oliver Hader  <oliver@typo3.org>
+
+       * Follow-up to #14465: Missing argument when rendering language preview in page module
+
 2010-05-26  Jeff Segars  <jeff@webempoweredchurch.org>
 
        * Fixed bug #14486: Added missing icons for the new iconset (thanks to Steffen Ritter)
index 41d45ce..13e3684 100755 (executable)
@@ -558,7 +558,7 @@ class tx_cms_layout extends recordList {
                                                list($lpRecord) = t3lib_BEfunc::getRecordsByField('pages_language_overlay','pid',$id,'AND sys_language_uid='.intval($lP));
                                                t3lib_BEfunc::workspaceOL('pages_language_overlay',$lpRecord);
                                                $params='&edit[pages_language_overlay]['.$lpRecord['uid'].']=edit&overrideVals[pages_language_overlay][sys_language_uid]='.$lP;
-                                               $lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay',$lpRecord)).
+                                               $lPLabel = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon(t3lib_iconWorks::getSpriteIconForRecord('pages_language_overlay', $lpRecord), $lpRecord['uid']).
                                                        $viewLink.
                                                        ($GLOBALS['BE_USER']->check('tables_modify','pages_language_overlay') ? '<a href="#" onclick="'.htmlspecialchars(t3lib_BEfunc::editOnClick($params,$this->backPath)).'" title="' . $GLOBALS['LANG']->getLL('edit', TRUE) . '">' .
                                                                t3lib_iconWorks::getSpriteIcon('actions-document-open') .