From 9597608e4b7b5ab650fde7198de013d7d4e65dd7 Mon Sep 17 00:00:00 2001 From: Taufik Nurrohman Date: Sat, 15 Oct 2022 21:32:04 +0700 Subject: [PATCH] Update --- engine/kernel/page.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/kernel/page.php b/engine/kernel/page.php index 60d4c24..86301e3 100644 --- a/engine/kernel/page.php +++ b/engine/kernel/page.php @@ -70,8 +70,8 @@ public function content(...$lot) { return $this->__call('content', $lot); } - public function exist() { - return $this->lot['exist'] ?? $this->_exist(); + public function exist(...$lot) { + return $this->__call('exist', $lot) ?? $this->_exist(); } public function getIterator(): \Traversable { @@ -95,6 +95,10 @@ public function jsonSerialize() { return $this->_exist() ? From::page(file_get_contents($this->path), true) : []; } + public function name(...$lot) { + return $this->__call('name', $lot) ?? parent::name(...$lot); + } + #[\ReturnTypeWillChange] public function offsetGet($key) { if ($this->_exist()) {