Project

General

Profile

Actions

Bug #14914

closed

config.disableImgBorderAttr should override anything

Added by Ernesto Baschny over 19 years ago. Updated about 19 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2005-08-08
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.8.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The fix added to 3.8.0 for http://bugs.typo3.org/view.php?id=797 had a bug in that the disableImgBorderAttr was checked wrongly. Now there is a fix for it in CVS, but it still isn't right:

class.tslib_content.php, line 2518:

if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2',$GLOBALS['TSFE']->config['config']['doctype']) || !$GLOBALS['TSFE']->config['config']['disableImgBorderAttr']) {
return $borderAttr;
}

I would like the disableImgBorderAttr attribute to override any other setting, so that I could turn off the border-tags even if my doctype is xhtml_trans. This is not possible. A simple solution would be to change the logic in the test from OR (||) to AND (&&).

(issue imported from #M1360)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #14977: Function 'getBorderAttr' for removing 'border="0"' from img-tags doesn't workClosedRupert Germann2005-09-18

Actions
Actions

Also available in: Atom PDF