Skip to content

Commit

Permalink
no need to die violently if a given sub-template was not found
Browse files Browse the repository at this point in the history
  • Loading branch information
live627 committed Dec 30, 2024
1 parent bc51997 commit 0f1f4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public static function loadSubTemplates(): void
{
if (isset(Utils::$context['sub_templates'])) {
foreach (Utils::$context['sub_templates'] as $sub_template) {
self::loadSubTemplate($sub_template, true);
self::loadSubTemplate($sub_template);
}
} else {
self::loadSubTemplate(Utils::$context['sub_template'] ?? 'main');
Expand Down

0 comments on commit 0f1f4d1

Please sign in to comment.