Update template.php

Ok, cancalling wrapper class for time. Now I figured out what the issue was about :)