Update Template.php

Fix for use on windows. Hard coded slash was causing problems with the compiled name.
This commit is contained in:
2014-06-02 21:38:17 +01:00
parent 54f9a1223c
commit 0b41816fa3

View File

@@ -48,7 +48,7 @@ class Template
if (DIR_TEMPLATES_COMPILED == false) {
return false;
}
$tFileSafe = preg_replace(array('%^'.preg_quote(DIR_TEMPLATES).'/%','/[^a-z0-9_\.]/i'), array('','_'), $tFile);
$tFileSafe = preg_replace(array('%^'.preg_quote(DIR_TEMPLATES.DIRECTORY_SEPARATOR,'%').'%','/[^a-z0-9_\.]/i'), array('','_'), $tFile);
return DIR_TEMPLATES_COMPILED.DS.$tFileSafe.'-'.md5($tFile).'.template.php';
}
private function GetCompiled($tFile) {