remove built-in exception handling, add DS as shorthand to DIRECTORY_SEPARATOR

This commit is contained in:
monte.ohrt
2009-08-29 22:57:29 +00:00
parent bfefb8e017
commit 770ef89611
10 changed files with 62 additions and 86 deletions

View File

@@ -38,7 +38,7 @@ function smarty_modifier_date_format($string, $format = '%b %e, %Y', $default_da
} else {
return;
}
if (DIRECTORY_SEPARATOR == '\\') {
if (DS == '\\') {
$_win_from = array('%D', '%h', '%n', '%r', '%R', '%t', '%T');
$_win_to = array('%m/%d/%y', '%b', "\n", '%I:%M:%S %p', '%H:%M', "\t", '%H:%M:%S');
if (strpos($format, '%e') !== false) {