From e7bdf04e3e58aa2c1821918b72753f274d3684fb Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 5 Nov 2018 13:41:27 +0100 Subject: render function only body --- w/class/art2.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'w/class/art2.php') diff --git a/w/class/art2.php b/w/class/art2.php index 5bad524..970058b 100644 --- a/w/class/art2.php +++ b/w/class/art2.php @@ -82,7 +82,7 @@ class Art2 $this->setaside(''); $this->setfooter(''); $this->setrender(''); - $this->setsecure(2); + $this->setsecure(3); $this->setinvitepassword('invitepassword'); $this->setinterface('section'); $this->setlinkfrom([]); @@ -276,7 +276,9 @@ class Art2 public function render($type = 'string') { - return $this->render; + if($type == 'string') { + return $this->render; + } } public function secure($type = 'int') @@ -496,7 +498,7 @@ class Art2 } } - public function setrender($render) + public function setrender(string $render) { $this->render = $render; } -- cgit v1.2.3