I know this is an old hack, but I'd like to try and get it working for me in 2.34 - I can't seem to get it to keep track of the number of times edited - the edits and last edited fields always remain at 0.
This is the code I'm using for the update at the moment:
Code:
$DB_site->query("UPDATE template SET templatesetid=$templatesetid,title='$title',template='$template',edits = edits + 1,lastedit=time() WHERE templateid=$templateid");
Any suggestions? Thanks!