Permalink
Browse files

MINOR User error was assuming $templateList is always an array when i…

…t can also be a string.
  • Loading branch information...
1 parent fece61c commit 0a3de455cf6f1b5e37eac3b9250596a03278e930 @frankmullenger frankmullenger committed with chillu Oct 29, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 view/SSViewer.php
View
@@ -326,8 +326,12 @@ public function __construct($templateList) {
);
}
- 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);
+ }
}
/**

0 comments on commit 0a3de45

Please sign in to comment.