@@ -42,7 +42,7 @@ |
||
| 42 | 42 | if ($page = DataObject::get_one(self::class)) { |
| 43 | 43 | return $page; |
| 44 | 44 | } |
| 45 | - user_error(_t(__CLASS__ . '.NoPage', 'No LostPasswordPage was found. |
|
| 45 | + user_error(_t(__CLASS__.'.NoPage', 'No LostPasswordPage was found. |
|
| 46 | 46 | Please create one in the CMS!'), E_USER_ERROR); |
| 47 | 47 | return null; |
| 48 | 48 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | if ($page = DataObject::get_one(self::class)) { |
| 42 | 42 | return $page; |
| 43 | 43 | } |
| 44 | - user_error(_t(__CLASS__ . '.NoPage', 'No CustomerLoginPage was found. |
|
| 44 | + user_error(_t(__CLASS__.'.NoPage', 'No CustomerLoginPage was found. |
|
| 45 | 45 | Please create one in the CMS!'), E_USER_ERROR); |
| 46 | 46 | return null; // just to keep static analysis happy |
| 47 | 47 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | if ($page = DataObject::get_one(self::class)) { |
| 42 | 42 | return $page; |
| 43 | 43 | } |
| 44 | - user_error(_t(__CLASS__ . '.NoPage', 'No UserRegistrationPage was found. |
|
| 44 | + user_error(_t(__CLASS__.'.NoPage', 'No UserRegistrationPage was found. |
|
| 45 | 45 | Please create one in the CMS!'), E_USER_ERROR); |
| 46 | 46 | return null; // just to keep static analysis happy |
| 47 | 47 | } |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | $filter = "Member.Created <= '$end'"; |
| 100 | 100 | } |
| 101 | 101 | if ($firstName) { |
| 102 | - $filter = ($filter)? $filter . " AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'"; |
|
| 102 | + $filter = ($filter) ? $filter." AND FirstName Like '%$firstName%'" : "FirstName Like '%$firstName%'"; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | return $filter; |
@@ -55,11 +55,11 @@ |
||
| 55 | 55 | try { |
| 56 | 56 | $form->saveInto($member); |
| 57 | 57 | $member->write(); |
| 58 | - $msg = $this->getCustomMessage('ProfileUpdateSuccess')!="" |
|
| 58 | + $msg = $this->getCustomMessage('ProfileUpdateSuccess') != "" |
|
| 59 | 59 | ? $this->getCustomMessage('ProfileUpdateSuccess') : "Profile updated!"; |
| 60 | 60 | $form->sessionMessage($msg, 'good'); |
| 61 | 61 | } catch (Exception $e) { |
| 62 | - $msg = $this->getCustomMessage('ProfileUpdatError')!="" |
|
| 62 | + $msg = $this->getCustomMessage('ProfileUpdatError') != "" |
|
| 63 | 63 | ? $this->getCustomMessage('ProfileUpdatError') : "Technical issue, Profile not updated!"; |
| 64 | 64 | $form->sessionMessage($msg, 'bad'); |
| 65 | 65 | } |