Check for template_include passing non-strings. Fixes #1134

This commit is contained in:
Tom Adams
2014-08-21 15:21:44 -04:00
parent ee3fc7119d
commit 2a06b3dfba

View File

@@ -36,6 +36,11 @@ class Roots_Wrapping {
}
static function wrap($main) {
// Check for other filters returning null
if (!is_string($main)) {
return $main;
}
self::$main_template = $main;
self::$base = basename(self::$main_template, '.php');