mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX SSViewer::getTemplateContent() now gracefully continues to operate if the file name can't be found to get unparsed content from.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@74294 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0881728d79
commit
2199a581e1
@ -275,6 +275,10 @@ class SSViewer extends Object {
|
||||
* @return string content of template
|
||||
*/
|
||||
public static function getTemplateContent($identifier) {
|
||||
if(!SSViewer::getTemplateFile($identifier)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return file_get_contents(SSViewer::getTemplateFile($identifier));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user