Updates code in regard of internal changes within the previous commit
authorMatthias Schmidt <gravatronics@live.com>
Wed, 8 Aug 2012 18:08:01 +0000 (20:08 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 8 Aug 2012 18:08:01 +0000 (20:08 +0200)
wcfsetup/install/files/lib/util/DateUtil.class.php

index 2fd124dbf0c30ef95d9154dfcc3f71f3940e28a2..4e8cb51485a52c0496ef7e7d64d4e6b0b6b8eebf 100644 (file)
@@ -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
                        ));