Updated ContentManager and related enums

Update .htaccess, manager.php, and 3 more files...
This commit is contained in:
2024-04-19 14:01:53 +02:00
parent c8bf68fa2d
commit 29ff221faa
5 changed files with 47 additions and 34 deletions

View File

@@ -39,10 +39,10 @@ include 'commons/DOM/sidebar.php';
<?php
// Loading the "index.json" file for later use in the showcase.
include_once 'commons/config.php';
include_once 'commons/content.php';
$contentManager = getContentManager($config_dir_content);
include_once 'commons/content/manager.php';
$contentManager = ContentManager::createContentManager($config_dir_content);
$content = NULL;
if(!$contentManager->hasError && $contentManager->displayType == ContentDisplayType::CONTENT) {
if(!$contentManager->hasError && $contentManager->displayType == EContentDisplayType::DISPLAY) {
$content = load_content_by_file_path($contentManager->contentFilepath);
if(is_null($content)) {
$contentManager->hasError = true;