[TYPO3-core] RFC: #11249: Clean up: Deprecation clean-up in tslib_content::getData()
Dmitry Dulepov
dmitry.dulepov at gmail.com
Fri Jun 5 09:19:18 CEST 2009
Hi!
Francois Suter wrote:
> 1) usage of "gpvar" is deprecated, but the deprecation log message
> appears also when using "gp"
...
> Solution:
> 1) Add test to log message only when "gpvar" is used
I afraid this ia programmer's approach :( If you look into TSRef, you will see that gpvar returns a value from _POST or _GET. So from TS writer's view it is a fully legal functionality and if it suddenly starts giving warnings, it only means one thing: someone broke this functionality. So I am -1 to this change.
There is a more user friendly way. If we think about customer satisfaction, we can silently change "gpvar" to use t3lib_div::_GP() instead. There will be no need for a new "gp" at all. "gpvar" does have to correspond to t3lib_div::GPvar. Keep TS stable and change the underlying implementation to use better functions. Save people from unnecessary troubles.
--
Dmitry Dulepov
In the TYPO3 blog: http://dmitry-dulepov.com/article/macintosh-vs-hackintosh.html
LinkedIn: http://www.linkedin.com/in/dmitrydulepov
Twitter: http://twitter.com/dmitryd
Skype: liels_bugs
More information about the TYPO3-team-core
mailing list