Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
BUG: refs #408. Changed clearstatcache to be compatable with php 5.2 .
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Grauer committed Dec 14, 2011
1 parent 0e7ea66 commit d62e219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/models/dao/BitstreamDao.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function fillPropertiesFromPath()
$this->setMimetype($this->Component->MimeType->getType($this->path));
// clear the stat cache, as the underlying file might have changed
// since the last time filesize was called on the same filepath
clearstatcache(true, $this->path);
clearstatcache();
$this->setSizebytes(filesize($this->path));
if(!isset($this->checksum) || empty($this->checksum))
{
Expand Down

0 comments on commit d62e219

Please sign in to comment.