Fixed bug #4526: Add td-<number> to last table elements in CSS styled content
authorMichael Stucki <michael.stucki@typo3.org>
Sun, 4 Feb 2007 21:07:58 +0000 (21:07 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 4 Feb 2007 21:07:58 +0000 (21:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1981 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/css_styled_content/pi1/class.tx_cssstyledcontent_pi1.php

index 9bab9eb..436bf00 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
        * Extended db_mountpoint and file_mountpoint fields into to 255 bytes size
        * Fixed bug #3069: Extension manager crashed because of some PHP bug with version_compare() (thanks to Rainer Haertlein who discovered the solution to this problem)
        * Changed t3lib_basicFileFunctions to use filemtime() instead of filectime()
+       * Fixed bug #4526: Add td-<number> to last table elements in CSS styled content
 
 2007-02-04  Oliver Hader  <oh@inpublica.de>
 
index fe46361..6da6533 100755 (executable)
@@ -194,7 +194,7 @@ class tx_cssstyledcontent_pi1 extends tslib_pibase {
                                        }
 
                                        if (!strcmp(trim($cells[$a]),''))       $cells[$a]='&nbsp;';
-                                       $cellAttribs = ($noStyles?'':($a>0 && ($cols-1)==$a) ? ' class="td-last"' : ' class="td-'.$a.'"');
+                                       $cellAttribs = ($noStyles?'':($a>0 && ($cols-1)==$a) ? ' class="td-last td-'.$a.'"' : ' class="td-'.$a.'"');
                                        if (($headerPos == 'top' && !$k) || ($headerPos == 'left' && !$a))      {
                                                $scope = ' scope="'.$headerScope.'"';
                                                $scope .= ' id="'.$headerIdPrefix.(($headerScope=='col')?$a:$k).'"';