aboutsummaryrefslogtreecommitdiff
path: root/w/class/art2.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-05 13:41:27 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-05 13:41:27 +0100
commite7bdf04e3e58aa2c1821918b72753f274d3684fb (patch)
treeba336324aeb65509f67f4791e06d08a70f3f12f1 /w/class/art2.php
parent85824de70ded75c98bd50220160e2171fdc8df41 (diff)
downloadwcms-e7bdf04e3e58aa2c1821918b72753f274d3684fb.tar.gz
wcms-e7bdf04e3e58aa2c1821918b72753f274d3684fb.zip
render function only body
Diffstat (limited to 'w/class/art2.php')
-rw-r--r--w/class/art2.php8
1 files changed, 5 insertions, 3 deletions
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;
}