Skip to content

Commit 11a98df

Browse files
xh3n1Sam Tuke
authored andcommitted
By default, add only 'System Template' as system template
Signed-off-by: Xheni Myrtaj <[email protected]>
1 parent a1ebcf1 commit 11a98df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public_html/lists/admin/defaultsystemtemplate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
$GLOBALS['tables']['template'], $title, addslashes($content)));
8282
$newid = Sql_Insert_Id();
8383

84-
saveConfig('systemmessagetemplate', $newid);
84+
if ($title === 'System Template') {
85+
saveConfig('systemmessagetemplate', $newid);
86+
}
8587

8688
echo '<p>' . s('The selected default template has been added as template with ID') . ' ' . $newid . ' </p>';
8789
echo '<p>' . PageLinkButton('templates', s('Go back to templates')) . '</p>';

0 commit comments

Comments
 (0)