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