Initialize themes system

main
Yasen Pramatarov 2025-05-22 15:13:23 +03:00
parent d366c1dd10
commit 4715a26af7
1 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,10 @@ require_once __DIR__ . '/../app/core/PluginManager.php';
use App\Core\HookDispatcher;
use App\Core\PluginManager;
// Initialize themes system
require_once __DIR__ . '/../app/helpers/theme.php';
use app\Helpers\Theme;
// Global allowed URLs registration
register_hook('filter_allowed_urls', function($urls) {
if (isset($GLOBALS['plugin_controllers']) && is_array($GLOBALS['plugin_controllers'])) {
@ -105,7 +109,7 @@ $allowed_urls = [
'conferences','participants','components',
'graphs','latest','livejs','agents',
'profile','credentials','config','security',
'settings',
'settings','theme',
'status',
'help','about',
'login','logout',