MINOR User error was assuming $templateList is always an array when it can also be a string.

This commit is contained in:
Frank Mullenger 2011-10-29 14:37:42 +13:00 committed by Ingo Schommer
parent fece61c90b
commit 0a3de455cf

View File

@ -326,8 +326,12 @@ class SSViewer {
);
}
if(!$this->chosenTemplates) user_error("None of these templates can be found in theme '"
if(!$this->chosenTemplates) {
$templateList = (is_array($templateList)) ? $templateList : array($templateList);
user_error("None of these templates can be found in theme '"
. self::current_theme() . "': ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
}
}
/**