make all themes have a Page class, to simplify loading

This commit is contained in:
Shish
2020-01-27 18:35:36 +00:00
parent 903679dc53
commit dba89e9d13
10 changed files with 15 additions and 12 deletions

View File

@ -528,9 +528,7 @@ function _sanitise_environment(): void
function _get_themelet_files(string $_theme): array
{
$base_themelets = [];
if (file_exists('themes/'.$_theme.'/custompage.class.php')) {
$base_themelets[] = 'themes/'.$_theme.'/custompage.class.php';
}
$base_themelets[] = 'themes/'.$_theme.'/page.class.php';
$base_themelets[] = 'themes/'.$_theme.'/layout.class.php';
$base_themelets[] = 'themes/'.$_theme.'/themelet.class.php';