Update template.php

Class 'JFile' not found in line 73 (now 74) (J2.5!) error.
Merge pull request #68 from bjoe2k4/patch-3

Update template.php