Project

General

Profile

Actions

Bug #19796

closed

pi_wrapInBaseClass should not wrap the div if content is empty

Added by Steffen Kamper almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-01-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you want to react in Typoscript on empty content, the function don't have to add content for this case.

Attached patch only wraps the div if content isn't empty.

Additional to this the option config.disablePrefixComment has to be active.

(issue imported from #M10102)


Files

10102.diff (708 Bytes) 10102.diff Administrator Admin, 2009-01-12 12:53

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #16864: Function pi_wrapInBaseClass in tslib/class.tslib_pibase.phpClosed2007-01-17

Actions
Is duplicate of TYPO3 Core - Feature #19809: make pi_wrapInBaseClass wraps configurableRejected2009-01-13

Actions
Actions #1

Updated by Steffen Müller almost 16 years ago

The patch makes source code hard to read. I suggest to use a regular control structure instead of ternary with shortest block first (as suggested in forthcoming CGL)

Actions #2

Updated by Martin Holtz almost 16 years ago

i think,

http://bugs.typo3.org/view.php?id=4801

would be a nicer solution.

so you can disable the wrap and use it as you want.

Actions #3

Updated by Christian Kuhn over 14 years ago

Resolved as duplicate of #19809

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF