From 79274dcedfb6dd0b50befb901a23e0d76650de4b Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 16 Nov 2013 19:02:44 +0000 Subject: [PATCH] AdminHandler: - clear some TODO notes git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1583 a1433add-5e2c-0410-b055-b7f2511e0802 --- model/AdminHandler.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/model/AdminHandler.php b/model/AdminHandler.php index c8cee1a3..d35ff442 100644 --- a/model/AdminHandler.php +++ b/model/AdminHandler.php @@ -148,7 +148,6 @@ class AdminHandler extends PFAHandler { } } else { db_delete('domain_admins', 'username', $this->id, "AND domain = 'ALL'"); - # TODO: check for errors (Note: we are blindly deleting the ALL domain for this admin, maybe he wasn't superadmin before so result count might be 0) } } @@ -172,7 +171,7 @@ class AdminHandler extends PFAHandler { */ public function delete() { if ( ! $this->view() ) { - $this->errormsg[] = 'An admin with that name does not exist.'; # TODO: make translatable + $this->errormsg[] = Config::Lang($this->msg['error_does_not_exist']); return false; }