@@ -1,7 +1,5 @@ |
||
| 1 | 1 | ``<?php |
| 2 | 2 | |
| 3 | - use OpenCafe\Datium as Datium; |
|
| 4 | - |
|
| 5 | 3 | return array ( |
| 6 | 4 | |
| 7 | 5 | 'numbers' => array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'), |
@@ -80,20 +80,22 @@ |
||
| 80 | 80 | case 'gregorian': |
| 81 | 81 | |
| 82 | 82 | if ( intval( $this->date_time->format( 'm' ) ) == 2 && |
| 83 | - $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) |
|
| 84 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
| 85 | - else |
|
| 86 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
| 83 | + $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) { |
|
| 84 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
| 85 | + } else { |
|
| 86 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
| 87 | + } |
|
| 87 | 88 | |
| 88 | 89 | break; |
| 89 | 90 | |
| 90 | 91 | case 'jalali': |
| 91 | 92 | |
| 92 | 93 | if ( intval( $this->date_time->format( 'm' ) ) == 12 && |
| 93 | - $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) |
|
| 94 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
| 95 | - else |
|
| 96 | - $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
| 94 | + $this->config[ 'leap_year' ]( $this->date_time->format( 'Y' )) ) { |
|
| 95 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ] + 1; |
|
| 96 | + } else { |
|
| 97 | + $days = $this->config[ 'month_days_number' ][ intval( $this->date_time->format( 'm' ) ) ]; |
|
| 98 | + } |
|
| 97 | 99 | |
| 98 | 100 | break; |
| 99 | 101 | |