From 9090550d241f9f7b3246b24bfd323bd988add749 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 28 Apr 2020 20:18:17 +0200 Subject: listen to brother Stan and clean some things --- app/class/Page.php | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'app/class/Page.php') diff --git a/app/class/Page.php b/app/class/Page.php index 43cf387..b1c6b49 100644 --- a/app/class/Page.php +++ b/app/class/Page.php @@ -234,22 +234,11 @@ class Page extends Dbitem if ($this->secure == 2) { $secure = 'not_published'; } - return $secure; } else { return $this->secure; } } - public function invitepassword($type = 'string') - { - return $this->invitepassword; - } - - public function readpassword($type = 'string') - { - return $this->readpassword; - } - public function interface($type = 'string') { return $this->interface; @@ -266,7 +255,7 @@ class Page extends Dbitem } elseif ($option == 'string') { return implode(', ', $this->linkto); } - return $linkto; + return $this->linkto; } public function templatebody($type = 'string') @@ -576,20 +565,6 @@ class Page extends Dbitem } } - public function setinvitepassword($invitepassword) - { - if (is_string($invitepassword) && strlen($invitepassword) < self::LEN) { - $this->invitepassword = $invitepassword; - } - } - - public function setreadpassword($readpassword) - { - if (is_string($readpassword) && strlen($readpassword) < self::LEN) { - $this->readpassword = $readpassword; - } - } - public function setinterface($interface) { if (in_array($interface, self::TABS)) { -- cgit v1.2.3