Message Text |
I've started adding the code below to my javascriptheader template so that the copyright line at the bottom of the page will automatically update. Once I add the code to the file though, I can no longer edit it from within the "manage templates" section of the admin panel. I get the following -
Error: The file ../templates/wsn/javascriptheader.tpl does not exist.
function copyright() {
today=new Date();
y0=today.getFullYear();
document.write(' ' + '© { LANG_COPYRIGHT_START_DATE }' + y0 + ' { LANG_COPYRIGHT_NAME }');
}
Is there something wrong with the code causing this error and I've just been lucky enough that it's worked? |