1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 19:30:40 +02:00

Version 1.2.15: Math refactored

This commit is contained in:
Trendschau
2019-06-05 07:07:14 +02:00
parent 3fce3a5c61
commit 3a3860938d
23 changed files with 100 additions and 218 deletions

View File

@@ -195,12 +195,12 @@ abstract class ContentController
{
$contentFolder = Folder::scanFolderFlat($this->settings['rootPath'] . $this->settings['contentFolder']);
if(array_search('index.md', $contentFolder))
if(in_array('index.md', $contentFolder))
{
$md = true;
$status = 'published';
}
if(array_search('index.txt', $contentFolder))
if(in_array('index.txt', $contentFolder))
{
$txt = true;
$status = 'unpublished';

View File

@@ -42,7 +42,7 @@ class PageController extends Controller
{
$structure = $this->getCachedStructure($cache);
}
else
if(!isset($structure) OR !$structure)
{
/* if not, get a fresh structure of the content folder */
$structure = $this->getFreshStructure($pathToContent, $cache, $uri);