- check_domain(), check_email(): instead of calling flash_error(),
return string with error message - or empty string if everything is ok
model/AdminHandler.php, model/AliasHandler.php,
model/DomainHandler.php, model/MailboxHandler.php,
sendmail.php, users/edit-alias.php:
- adopt to changed check_domain() and check_email() return value
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1451 a1433add-5e2c-0410-b055-b7f2511e0802
$this->errormsg[$this->id_field]=Lang::read('pAdminCreate_admin_username_text_error1');# TODO: half of the errormsg is currently delivered via flash_error() in check_email / check_domain
@ -9,12 +9,12 @@ class DomainHandler extends PFAHandler {
protected$domain_field='domain';
protected$domain_field='domain';
protectedfunctionvalidate_new_id(){
protectedfunctionvalidate_new_id(){
$valid=check_domain($this->id);
$domain_check=check_domain($this->id);
if($valid){
if($domain_check==''){
returntrue;
returntrue;
}else{
}else{
$this->errormsg[$this->id_field]=Lang::read('pAdminCreate_domain_domain_text_error2');# TODO: half of the errormsg is currently delivered via flash_error() in check_domain