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:
@@ -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';
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user