From a36665475789cec380f2986b0152a04c267f0d31 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sun, 25 Jun 2017 14:35:27 +0200 Subject: [PATCH] Better use Config::Lang instead of global $PALANG --- model/DomainHandler.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/model/DomainHandler.php b/model/DomainHandler.php index 3acf7450..d3805421 100644 --- a/model/DomainHandler.php +++ b/model/DomainHandler.php @@ -187,8 +187,6 @@ class DomainHandler extends PFAHandler { * @return true on success false on failure */ public function delete() { - global $PALANG; - # TODO: check for _can_delete instead if (! $this->is_superadmin) { $this->errormsg[] = Config::Lang_f('no_delete_permissions', $this->id); @@ -235,7 +233,7 @@ class DomainHandler extends PFAHandler { db_delete($this->db_table, $this->id_field, $this->id); if ( !$this->domain_postdeletion() ) { - $this->error_msg[] = $PALANG['domain_postdel_failed']; + $this->error_msg[] = Config::Lang('domain_postdel_failed'); } db_log ($this->id, 'delete_domain', $this->id); # TODO delete_domain is not a valid db_log keyword yet