summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/TJavaScript.php
diff options
context:
space:
mode:
authorChristophe.Boulain <>2009-03-04 09:57:20 +0000
committerChristophe.Boulain <>2009-03-04 09:57:20 +0000
commit0fe16971665d11ebc57267938a7a4e4bf6762a78 (patch)
tree23bf22a132a9641600bd15bbd627e18852128d6f /framework/Web/Javascripts/TJavaScript.php
parentfa7f2fa663e7c9a06c5f45524811541ecc66ca5d (diff)
Reverting changes of revision 2612, since this introduced a new bug.
Diffstat (limited to 'framework/Web/Javascripts/TJavaScript.php')
-rw-r--r--framework/Web/Javascripts/TJavaScript.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/framework/Web/Javascripts/TJavaScript.php b/framework/Web/Javascripts/TJavaScript.php
index b36d5b40..2134c2d1 100644
--- a/framework/Web/Javascripts/TJavaScript.php
+++ b/framework/Web/Javascripts/TJavaScript.php
@@ -210,14 +210,6 @@ class TJavaScript
*/
public static function jsonEncode($value)
{
- if (function_exists('json_encode'))
- {
- if (is_string($value) &&
- ($g=Prado::getApplication()->getGlobalization(false))!==null &&
- strtoupper($enc=$g->getCharset())!='UTF-8')
- $value=iconv($enc, 'UTF-8', $value);
- return json_encode($value);
- }
if(self::$_json === null)
self::$_json = Prado::createComponent('System.Web.Javascripts.TJSON');
return self::$_json->encode($value);
@@ -231,8 +223,6 @@ class TJavaScript
*/
public static function jsonDecode($value)
{
- if (function_exists('json_decode'))
- return json_decode($value);
if(self::$_json === null)
self::$_json = Prado::createComponent('System.Web.Javascripts.TJSON');
return self::$_json->decode($value);