From 65993924b0416d6250820a8e0d4d4cf2fcb429c2 Mon Sep 17 00:00:00 2001 From: Cristian Torres Date: Tue, 17 Apr 2018 17:59:47 -0600 Subject: [PATCH] Localized month folder name on filing --- code/pages/NewsHolder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/pages/NewsHolder.php b/code/pages/NewsHolder.php index 75ca2e7..dd7a7f5 100644 --- a/code/pages/NewsHolder.php +++ b/code/pages/NewsHolder.php @@ -200,7 +200,7 @@ public function getPartitionedHolderForArticle($article) { } $year = date('Y', strtotime($date)); - $month = date('M', strtotime($date)); + $month = ucfirst(strftime('%b', strtotime($date))); $day = date('d', strtotime($date)); $yearFolder = $this->dateFolder($year); @@ -305,4 +305,4 @@ function Rss() { $this->response->addHeader('Content-Type', 'application/rss+xml'); return $rss->outputToBrowser(); } -} \ No newline at end of file +}