public function CheckTemplate($nobuild = false)
{
$this->template->LoadTemplates();
$s = implode($this->template->templates);
$md5 = md5($s);
if ($md5 != $this->cache->templates_md5) {
if ($nobuild == true) {
return false;
}
$this->BuildTemplate();
$this->cache->templates_md5 = $md5;
$this->SaveCache();
}
return true;
}