clean up code in ZapHome and ZapDisplay (#19 and #20)

This commit is contained in:
Fabian de Boer 2026-07-20 01:14:00 +02:00
commit 3edb156749
5 changed files with 24 additions and 21 deletions

View file

@ -8,11 +8,6 @@ class ZAPHome implements ZAPHandler {
*/
private $template = 'index';
/**
* ZAP version
*/
private $ver;
/**
* Parsable content
*/
@ -22,10 +17,8 @@ class ZAPHome implements ZAPHandler {
* Constructor
*/
public function __construct() {
$this->ver = ZAP_VERSION;
extract(get_object_vars($this));
ob_start();
$ver = ZAP_VERSION;
include getZAPTemplate($this->template);
$this->tpl .= ob_get_clean();
}