1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

News cache and comment fixes.

This commit is contained in:
Cameron
2016-12-13 08:58:00 -08:00
parent 51ce94b389
commit 7858c84da0
2 changed files with 68 additions and 18 deletions

View File

@@ -45,6 +45,12 @@ class ecache {
*/
public function setMD5($text, $hash=true)
{
if($text === null)
{
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.defset('e_QUERY').filemtime(THEME.'theme.php'));
return $this;
}
$this->CachePageMD5 = ($hash === true) ? md5($text) : $text;
return $this;
}