1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-04 21:27:41 +02:00

moved assets to middleware for proxy detection

This commit is contained in:
trendschau
2020-10-18 08:50:58 +02:00
parent 1e6c42c98a
commit a3167a26ee
15 changed files with 183 additions and 83 deletions

View File

@@ -267,11 +267,11 @@ class Folder
}
}
public static function getItemForUrl($folderContentDetails, $url, $baseUrl, $result = NULL)
public static function getItemForUrl($folderContentDetails, $url, $baseUrl, $result = NULL, $home = NULL )
{
# if we are on the homepage
if($url == '/' OR $url == $baseUrl)
if($home)
{
# return a standard item-object
$item = new \stdClass;