Requires required included file.
authorStéphane Jacob <sj@m4x.org>
Tue, 13 Sep 2011 12:22:45 +0000 (14:22 +0200)
committerStéphane Jacob <sj@m4x.org>
Tue, 13 Sep 2011 12:22:45 +0000 (14:22 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations/aliases.inc.php

index 5109fa9..259939f 100644 (file)
@@ -101,6 +101,7 @@ class AliasReq extends Validate
 
         if ($success) {
             // Update the local User object, to pick up the new bestalias.
+            require_once 'emails.inc.php';
             fix_bestalias($this->user);
             $this->user = User::getSilentWithUID($this->user->id());
         }