Fix for modular markdown preview admin#1066

This commit is contained in:
Andy Miller
2018-06-20 23:37:58 +01:00
parent a07a99e2cd
commit dc9b6daaa3
2 changed files with 7 additions and 0 deletions

View File

@@ -1863,6 +1863,7 @@ class AdminController extends AdminBaseController
$this->preparePage($page, true);
$page->header();
$page->templateFormat('html');
// Add theme template paths to Twig loader
$template_paths = $this->grav['locator']->findResources('theme://templates');