From acfd38743bfbd7b48ddba22f3ec2465e06b8dfce Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 8 Aug 2012 20:08:01 +0200 Subject: [PATCH] Updates code in regard of internal changes within the previous commit --- wcfsetup/install/files/lib/util/DateUtil.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/util/DateUtil.class.php b/wcfsetup/install/files/lib/util/DateUtil.class.php index 2fd124dbf0..4e8cb51485 100644 --- a/wcfsetup/install/files/lib/util/DateUtil.class.php +++ b/wcfsetup/install/files/lib/util/DateUtil.class.php @@ -199,13 +199,13 @@ final class DateUtil { )); } + if ($weeks) { + return WCF::getLanguage()->getDynamicVariable('wcf.date.interval.weeks', array( + 'weeks' => $weeks + )); + } + if ($days) { - if ($days > 7) { - return WCF::getLanguage()->getDynamicVariable('wcf.date.interval.weeks', array( - 'weeks' => $weeks - )); - } - return WCF::getLanguage()->getDynamicVariable('wcf.date.interval.days', array( 'days' => $days )); -- 2.20.1