parent
39c7451664
commit
e549c44247
|
@ -117,9 +117,12 @@ class AnnouncementIniRepository extends IniRepository
|
||||||
public function getEtag()
|
public function getEtag()
|
||||||
{
|
{
|
||||||
$file = $this->getDataSource('announcement')->getConfigFile();
|
$file = $this->getDataSource('announcement')->getConfigFile();
|
||||||
$mtime = filemtime($file);
|
if (@is_readable($file)) {
|
||||||
$size = filesize($file);
|
$mtime = filemtime($file);
|
||||||
return hash('crc32', $mtime . $size);
|
$size = filesize($file);
|
||||||
|
return hash('crc32', $mtime . $size);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue