Bug #14914

config.disableImgBorderAttr should override anything

Added by Ernesto Baschny about 14 years ago. Updated almost 14 years ago.

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

0%

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

Duplicates TYPO3 Core - Bug #14977: Function 'getBorderAttr' for removing 'border="0"' from img-tags doesn't work Closed 2005-09-18

History

#2 Updated by Rupert Germann almost 14 years ago

is a duplicate

Also available in: Atom PDF