summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2004-02-21 14:08:09 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2004-02-21 14:08:09 +0000
commit54c2aa8c4d706dd548cc56cf5132adce1f0a3f7e (patch)
tree71cf3a502d6f72005a3f956b0b4c20e353300d0e /includes
parent91d32237277c9a613647d27f98292c88e087db97 (diff)
downloadbrdo-54c2aa8c4d706dd548cc56cf5132adce1f0a3f7e.tar.gz
brdo-54c2aa8c4d706dd548cc56cf5132adce1f0a3f7e.tar.bz2
- Fixed bug #5977: Date translation screwed.
- Fixed '\n' => "\n".
Diffstat (limited to 'includes')
-rw-r--r--includes/bootstrap.inc2
-rw-r--r--includes/common.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 51f0260ee..a22e629ea 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -144,7 +144,7 @@ function drupal_page_header() {
** headers.
*/
- $headers = explode('\n', $cache->headers);
+ $headers = explode("\n", $cache->headers);
foreach ($headers as $header) {
header($header);
}
diff --git a/includes/common.inc b/includes/common.inc
index 8b446811b..1d866951f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -876,7 +876,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
$max = strlen($format);
for ($i = 0; $i <= $max; $c = $format{$i++}) {
if (strpos('AaDFlM', $c)) {
- $date .= gmdate($c, $timestamp);
+ $date .= t(gmdate($c, $timestamp));
}
else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c)) {
$date .= gmdate($c, $timestamp);