mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
elofgren: Add needed isset($_GETshowtemplate?) to SSViewer_FromString::process() to prevent errors when sending a newsletter draft.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41937 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b0d65bba2e
commit
67743359a1
@ -340,7 +340,7 @@ class SSViewer_FromString extends SSViewer {
|
|||||||
fwrite($fh, $template);
|
fwrite($fh, $template);
|
||||||
fclose($fh);
|
fclose($fh);
|
||||||
|
|
||||||
if(isset($_GET['showtemplate'])) {
|
if(isset($_GET['showtemplate']) && $_GET['showtemplate']) {
|
||||||
$lines = file($tmpFile);
|
$lines = file($tmpFile);
|
||||||
echo "<h2>Template: $tmpFile</h2>";
|
echo "<h2>Template: $tmpFile</h2>";
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user