@@ -127,9 +127,15 @@ |
||
| 127 | 127 | { |
| 128 | 128 | $currentMonth = date('m'); |
| 129 | 129 | |
| 130 | - if ($currentMonth >= '01' && $currentMonth < '04') return 'winter'; |
|
| 131 | - if ($currentMonth >= '04' && $currentMonth < '07') return 'spring'; |
|
| 132 | - if ($currentMonth >= '07' && $currentMonth < '10') return 'summer'; |
|
| 130 | + if ($currentMonth >= '01' && $currentMonth < '04') { |
|
| 131 | + return 'winter'; |
|
| 132 | + } |
|
| 133 | + if ($currentMonth >= '04' && $currentMonth < '07') { |
|
| 134 | + return 'spring'; |
|
| 135 | + } |
|
| 136 | + if ($currentMonth >= '07' && $currentMonth < '10') { |
|
| 137 | + return 'summer'; |
|
| 138 | + } |
|
| 133 | 139 | return 'autumn'; |
| 134 | 140 | } |
| 135 | 141 | |