Project

General

Profile

Actions

Feature #19973

closed

Add gp as an alternative to gpvar in TS getText for a more consistent naming scheme

Added by Steffen Müller almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-02-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

Problem:
The processing of GET/POST variables in TypoScript does not have a consistent naming scheme:
- TS conditions use GP for GET/POST vars in globalVar and globalString.
- TS getText uses GPvar
User might be confused by an unconsistent naming scheme.

Solution:
Since t3lib_div::GPvar is deprecated, GP should be also used in getText. For backward compatibility, leave gpvar as is and add gp as an alternative. Add a hint in TSref to use gp instead of gpvar in getText.

We'd also have to change TSref chapter on conditions:

IMPORTANT NOTE ON globalVar and globalString:
(...)
Caring about this means that you would get values like HTTP_HOST by getenv(), you would retrieve GET/POST values with t3lib_div::GPvar().
(...)
(issue imported from #M10357)


Files

bug_10357.diff (506 Bytes) bug_10357.diff Administrator Admin, 2009-02-05 11:51
bug_10357_v2.diff (838 Bytes) bug_10357_v2.diff Administrator Admin, 2009-02-05 21:01
Actions #1

Updated by Steffen Müller almost 16 years ago

added new patch adding deprecatedLog

Actions

Also available in: Atom PDF