Completed
Pull Request — master (#2203)
by Rico
15:37 queued 08:08
created
app/Http/Controllers/CalendarController.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
             if (strlen($match[1]) > strlen($match[2])) {
73 73
                 $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2];
74 74
             }
75
-            $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}");
75
+            $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}");
76 76
             $view     = 'year';
77 77
         } else {
78 78
             // advanced-year "decade/century wildcard"
79 79
             if (preg_match('/^(\d+)(\?+)$/', $year, $match)) {
80 80
                 $y1       = $match[1] . str_replace('?', '0', $match[2]);
81 81
                 $y2       = $match[1] . str_replace('?', '9', $match[2]);
82
-                $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}");
82
+                $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}");
83 83
                 $view     = 'year';
84 84
             } else {
85 85
                 if ($year < 0) {
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
             if (strlen($match[1]) > strlen($match[2])) {
192 192
                 $match[2] = substr($match[1], 0, strlen($match[1]) - strlen($match[2])) . $match[2];
193 193
             }
194
-            $ged_date = new Date("FROM {$cal} {$match[1]} TO {$cal} {$match[2]}");
194
+            $ged_date = new Date("from {$cal} {$match[1]} TO {$cal} {$match[2]}");
195 195
             $view     = 'year';
196 196
         } else {
197 197
             // advanced-year "decade/century wildcard"
198 198
             if (preg_match('/^(\d+)(\?+)$/', $year, $match)) {
199 199
                 $y1       = $match[1] . str_replace('?', '0', $match[2]);
200 200
                 $y2       = $match[1] . str_replace('?', '9', $match[2]);
201
-                $ged_date = new Date("FROM {$cal} {$y1} TO {$cal} {$y2}");
201
+                $ged_date = new Date("from {$cal} {$y1} TO {$cal} {$y2}");
202 202
                 $view     = 'year';
203 203
             } else {
204 204
                 if ($year < 0) {
Please login to merge, or discard this patch.