Project

General

Profile

Actions

Bug #17086

closed

class.t3lib_div.php

Added by Martin Holtz over 17 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2007-03-06
Due date:
% Done:

0%

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

Description

function fixed_lgd is deprecated,
i should use t3lib_div::fixed_lgd_cs()

but function fixed_lgd_cs i should only use from backend!

and i thougt, t3lib_div is for frontend development too?

i would say, that is an logical error - is it an bug?

btw. fixed_lgd is used ind tipafriend
(issue imported from #M5148)

Actions #1

Updated by Benni Mack over 16 years ago

Hey Martin,

I think you should use the function from the LANG object, right?

Actions #2

Updated by Martin Holtz over 16 years ago

i do not remember, why i needed that function, but i think there is a code-documentation-error in t3lib_div, because

fixed_lgd is marked as deprecated and fixed_lgd_cs is marked as "use only in backend" which is not explained.

So if i used fixed_lgd in an frontend extension i would not know if i should use fixed_lgd_cs or not.

the code documentation is not correct at that point i think.

that is not sooo important, but it is a little bit confusing

i think the sentence "Use only from backend!" in fixed_lgd_cs should be explaind and there should be an hint which function i should use in frontend.

i think stdWrap.crop would be the frontend function?

regards,
martin

Actions #3

Updated by Christian Kuhn over 15 years ago

Resolved, fixed:

The comment "Use only from backend!" has been removed in trunk with revision 4844 with bug #19792

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF