From 34dc11d68ee474cf7dbb1f2e86befe4bae3caf42 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Fri, 11 Jan 2013 09:57:23 -0700 Subject: add warning messae about automatically generated templates --- mods/friendica-to-smarty-tpl.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mods') diff --git a/mods/friendica-to-smarty-tpl.py b/mods/friendica-to-smarty-tpl.py index 369b8ea9a..9e4e52671 100755 --- a/mods/friendica-to-smarty-tpl.py +++ b/mods/friendica-to-smarty-tpl.py @@ -94,6 +94,9 @@ def fix_element(element): def convert(filename, tofilename, php_tpl): + header = ldelim + "*\n *\tAUTOMATICALLY GENERATED TEMPLATE\n *\tDO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN\n *\n *" + rdelim + tofilename.write(header) + for line in filename: newline = '' st_pos = 0 -- cgit v1.2.3