Why do we need addslashes() here again? Shouldn't the json serialization take
authorJan Schneider <jan@horde.org>
Wed, 3 Jun 2009 14:06:59 +0000 (16:06 +0200)
committerJan Schneider <jan@horde.org>
Wed, 3 Jun 2009 14:06:59 +0000 (16:06 +0200)
care of escaping? Fixes double escaped double quotes.

kronolith/lib/Kronolith.php

index 01724c0..93ad7a1 100644 (file)
@@ -195,7 +195,7 @@ class Kronolith
         }
 
         /* Gettext strings used in core javascript files. */
-        $code['text'] = array_map('addslashes', array(
+        $code['text'] = array(
             'ajax_timeout' => _("There has been no contact with the remote server for several minutes. The server may be temporarily unavailable or network problems may be interrupting your session. You will not see any updates until the connection is restored."),
             'ajax_recover' => _("The connection to the remote server has been restored."),
             'alarm' => _("Alarm:"),
@@ -203,7 +203,7 @@ class Kronolith
             'week' => str_replace('%d', '#{week}', _("Week %d")),
             'agenda' => _("Agenda"),
             'searching' => str_replace('%s', '#{term}', _("Events matching \"%s\"")),
-        ));
+        );
         for ($i = 1; $i <= 12; ++$i) {
             $code['text']['month'][$i - 1] = NLS::getLangInfo(constant('MON_' . $i));
         }