Unify errorField in UserRegistrationDateCondition
authorMatthias Schmidt <gravatronics@live.com>
Thu, 25 Dec 2014 12:33:49 +0000 (13:33 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 25 Dec 2014 12:33:49 +0000 (13:33 +0100)
wcfsetup/install/files/lib/system/condition/UserRegistrationDateCondition.class.php

index b8a10cd18df62cb967faf190eacf74ce6b4f01fb..0d895eb94efd9eb21ff1b9a5319d9f48070c42ee 100644 (file)
@@ -131,7 +131,7 @@ HTML;
                        if ($registrationDateStart === false) {
                                $this->errorMessage = 'wcf.user.condition.registrationDate.error.startNotValid';
                                
-                               throw new UserInputException('registrationDateStart', 'startNotValid');
+                               throw new UserInputException('registrationDate', 'startNotValid');
                        }
                }
                if (strlen($this->registrationDateEnd)) {
@@ -139,14 +139,14 @@ HTML;
                        if ($registrationDateEnd === false) {
                                $this->errorMessage = 'wcf.user.condition.registrationDate.error.endNotValid';
                                
-                               throw new UserInputException('registrationDateEnd', 'endNotValid');
+                               throw new UserInputException('registrationDate', 'endNotValid');
                        }
                }
                
                if ($registrationDateEnd !== null && $registrationDateStart !== null && $registrationDateEnd < $registrationDateStart) {
                        $this->errorMessage = 'wcf.user.condition.registrationDate.error.endBeforeStart';
                        
-                       throw new UserInputException('registrationDateEnd', 'endBeforeStart');
+                       throw new UserInputException('registrationDate', 'endBeforeStart');
                }
        }