Skip to content

Commit 62e9c1e

Browse files
committed
Changes done as per feedback
1 parent 73bae70 commit 62e9c1e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/i18n/sfDateFormat.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public function format($time, $pattern = 'F', $inputPattern = null, $charset = '
229229
for ($i = 0, $max = count($tokens); $i < $max; $i++)
230230
{
231231
$pattern = $tokens[$i];
232-
if ($pattern[0] == "'" && $pattern[(strlen($pattern) - 1)] == "'")
232+
if ($pattern[0] == "'" && $pattern[strlen($pattern) - 1] == "'")
233233
{
234234
$tokens[$i] = str_replace('``````', '\'', preg_replace('/(^\')|(\'$)/', '', $pattern));
235235
}

lib/i18n/sfNumberFormat.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function formatInteger($string)
193193
// now for the integer groupings
194194
for ($i = 0; $i < $len; $i++)
195195
{
196-
$char = $string[($len - $i - 1)];
196+
$char = $string[$len - $i - 1];
197197

198198
if ($multiGroup && $count == 0)
199199
{

0 commit comments

Comments
 (0)