diff options
Diffstat (limited to 'modules-available/dozmod')
-rw-r--r-- | modules-available/dozmod/inc/pagemailtemplates.inc.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules-available/dozmod/inc/pagemailtemplates.inc.php b/modules-available/dozmod/inc/pagemailtemplates.inc.php index b7b5a8d4..ff47977f 100644 --- a/modules-available/dozmod/inc/pagemailtemplates.inc.php +++ b/modules-available/dozmod/inc/pagemailtemplates.inc.php @@ -59,14 +59,16 @@ class Page_mail_templates extends Page $t['modified'] = !$t['original']; $t['conflict'] = !$t['original'] && $t['edit_version'] < $t['version']; } - } + protected function doRender() { $this->enrichHtml(); - $this->templates['allowedReset'] = User::hasPermission("templates.reset"); - $this->templates['allowedSave'] = User::hasPermission("templates.save"); - Render::addTemplate('templates', ['templates' => $this->templates]); + Render::addTemplate('templates', [ + 'templates' => $this->templates, + 'allowedReset' => User::hasPermission("templates.reset"), + 'allowedSave' => User::hasPermission("templates.save"), + ]); } private function forcmp($string) |