| @@ 75-87 (lines=13) @@ | ||
| 72 | $m = $interval->i; |
|
| 73 | $s = $interval->s; |
|
| 74 | ||
| 75 | if ($d > 0) { |
|
| 76 | $unit = 'day'; |
|
| 77 | $count = $d; |
|
| 78 | } elseif ($h > 0) { |
|
| 79 | $unit = 'hour'; |
|
| 80 | $count = $h; |
|
| 81 | } elseif ($m > 0) { |
|
| 82 | $unit = 'minute'; |
|
| 83 | $count = $m; |
|
| 84 | } else { |
|
| 85 | $unit = 'second'; |
|
| 86 | $count = $s; |
|
| 87 | } |
|
| 88 | ||
| 89 | $key = "common/time.$unit"; |
|
| 90 | ||
| @@ 451-463 (lines=13) @@ | ||
| 448 | $m = $interval->i; |
|
| 449 | $s = $interval->s; |
|
| 450 | ||
| 451 | if ($d > 0) { |
|
| 452 | $unit = 'day'; |
|
| 453 | $count = $d; |
|
| 454 | } elseif ($h > 0) { |
|
| 455 | $unit = 'hour'; |
|
| 456 | $count = $h; |
|
| 457 | } elseif ($m > 0) { |
|
| 458 | $unit = 'minute'; |
|
| 459 | $count = $m; |
|
| 460 | } else { |
|
| 461 | $unit = 'second'; |
|
| 462 | $count = $s; |
|
| 463 | } |
|
| 464 | ||
| 465 | $key = "common/time.$unit"; |
|
| 466 | ||