diff --git a/lot/x/page/about.page b/lot/x/page/about.page index d4f5529a..2ef614ad 100644 --- a/lot/x/page/about.page +++ b/lot/x/page/about.page @@ -3,7 +3,7 @@ title: Page description: Convert file and folder structure into web pages. author: Taufik Nurrohman type: Markdown -version: 1.12.2 +version: 1.12.3 use: '.\lot\x\layout': 1 diff --git a/lot/x/page/engine/kernel/page.php b/lot/x/page/engine/kernel/page.php index 934b2054..30e47d71 100644 --- a/lot/x/page/engine/kernel/page.php +++ b/lot/x/page/engine/kernel/page.php @@ -54,7 +54,8 @@ public function __toString() { } public function ID(...$lot) { - return $this->_get('id', $lot) ?? (($t = $this->time()->format('U')) ? sprintf('%u', $t) : null); + $id = $this->_get('id', $lot) ?? (($t = $this->time()->format('U')) ? sprintf('%u', $t) : null); + return is_string($id) && is_numeric($id) ? (int) $id : $id; } // Inherit to `File::URL()`