1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-06 14:16:46 +02:00

Version 1.4.9: Switch image quality in meta, fix files in hidden folder

This commit is contained in:
trendschau
2021-09-03 11:19:33 +02:00
parent 5f597c31ad
commit c07f5d54d4
5 changed files with 46 additions and 9 deletions

View File

@@ -162,7 +162,7 @@ class PageController extends Controller
$item = Folder::getItemForUrl($structure, $urlRel, $uri->getBasePath());
# if the item is a folder and if that folder is not hidden
if($item && isset($item->hide) && !$item->hide)
if($item && $item->elementType == 'folder' && isset($item->hide) && !$item->hide)
{
# use the navigation instead of the structure so that hidden elements are erased
$item = Folder::getItemForUrl($navigation, $urlRel, $uri->getBaseUrl(), NULL, $home);
@@ -396,7 +396,7 @@ class PageController extends Controller
$extended = false;
}
}
# cache structure
$cache->updateCache('cache', 'structure.txt', 'lastCache.txt', $structure);
@@ -415,7 +415,9 @@ class PageController extends Controller
}
# load and return the cached structure, because might be manipulated with navigation....
return $this->getCachedStructure($cache);
$structure = $this->getCachedStructure($cache);
return $structure;
}
# creates a file that holds all hide flags and navigation titles