mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 00:58:38 -04:00
Fixes stat problems on 32bit systems.
This commit is contained in:
parent
b87dc5a45b
commit
7be15da13a
2 changed files with 5 additions and 5 deletions
|
@ -51,7 +51,7 @@ class Entry {
|
|||
$this->is_folder = is_dir($this->abs_path);
|
||||
$this->abs_href = $this->app->get_abs_href($abs_path, $this->is_folder);
|
||||
|
||||
$this->date = filemtime($this->abs_path);
|
||||
$this->date = @filemtime($this->abs_path);
|
||||
|
||||
if ($this->is_folder) {
|
||||
$this->size = null;
|
||||
|
@ -61,7 +61,7 @@ class Entry {
|
|||
$this->size = intval(preg_replace("/\s.*$/", "", `$cmd`), 10);
|
||||
}
|
||||
} else {
|
||||
$this->size = filesize($this->abs_path);
|
||||
$this->size = @filesize($this->abs_path);
|
||||
}
|
||||
|
||||
$this->is_content_fetched = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue