mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-19 12:00:01 +01:00
Fixes stat problems on 32bit systems.
This commit is contained in:
parent
b87dc5a45b
commit
7be15da13a
@ -22,9 +22,9 @@ modulejs.define('view/extended', ['_', '$', 'core/settings', 'core/resource', 'c
|
||||
listTemplate = '<ul>' +
|
||||
'<li class="header">' +
|
||||
'<a class="icon"/>' +
|
||||
'<a class="label" href="#"><span class="l10n-name"></span></a>' +
|
||||
'<a class="date" href="#"><span class="l10n-lastModified"></span></a>' +
|
||||
'<a class="size" href="#"><span class="l10n-size"></span></a>' +
|
||||
'<a class="label" href="#"><span class="l10n-name"/></a>' +
|
||||
'<a class="date" href="#"><span class="l10n-lastModified"/></a>' +
|
||||
'<a class="size" href="#"><span class="l10n-size"/></a>' +
|
||||
'</li>' +
|
||||
'</ul>',
|
||||
emptyTemplate = '<div class="empty l10n-empty"/>',
|
||||
|
@ -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…
x
Reference in New Issue
Block a user