Version 5.0.0 beta 7

This commit is contained in:
Neo committed 2025-12-19 17:18:38 -08:00
1 parent fa2a720105
commit 54d5dcd0a0
156 files changed
+4337 -2995

No files matched your search

@@ -95,11 +95,6 @@ class FolderNavigation extends Widget
*/
public function render(): string
{
if( !Page::$currentPage )
{
return "";
}
$rootId = $this->configuration['block_nav_folder'] ?? 0;
if( $rootId !== 0 )
{
@@ -124,6 +119,6 @@ class FolderNavigation extends Widget
)
);
return $this->output( $folders, $rootId, $pages, $this->configuration['block_nav_title'] ?? null, Page::$currentPage->folder_id ?: null );
return $this->output( $folders, $rootId, $pages, $this->configuration['block_nav_title'] ?? null, ( Page::$currentPage ? ( Page::$currentPage->folder_id ?: null ) : null ) );
}
}