]> git.mxchange.org Git - friendica.git/blobdiff - mods/friendica-to-smarty-tpl.py
add warning message about automatically generated templates
[friendica.git] / mods / friendica-to-smarty-tpl.py
index 369b8ea9a885ae85f7c2822c4cb82c67a39b6f22..9e4e526718f20f0f6614b639a2247740b05542b3 100755 (executable)
@@ -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