Commit 54c2aa8c authored by Kjartan's avatar Kjartan
Browse files

- Fixed bug #5977: Date translation screwed.

- Fixed '\n' => "\n".
parent 91d32237
...@@ -144,7 +144,7 @@ function drupal_page_header() { ...@@ -144,7 +144,7 @@ function drupal_page_header() {
** headers. ** headers.
*/ */
$headers = explode('\n', $cache->headers); $headers = explode("\n", $cache->headers);
foreach ($headers as $header) { foreach ($headers as $header) {
header($header); header($header);
} }
......
...@@ -876,7 +876,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL ...@@ -876,7 +876,7 @@ function format_date($timestamp, $type = 'medium', $format = '', $timezone = NUL
$max = strlen($format); $max = strlen($format);
for ($i = 0; $i <= $max; $c = $format{$i++}) { for ($i = 0; $i <= $max; $c = $format{$i++}) {
if (strpos('AaDFlM', $c)) { if (strpos('AaDFlM', $c)) {
$date .= gmdate($c, $timestamp); $date .= t(gmdate($c, $timestamp));
} }
else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c)) { else if (strpos('BdgGhHiIjLmnsStTUwWYyz', $c)) {
$date .= gmdate($c, $timestamp); $date .= gmdate($c, $timestamp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment