mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 12:34:47 -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
|
@ -22,9 +22,9 @@ modulejs.define('view/extended', ['_', '$', 'core/settings', 'core/resource', 'c
|
||||||
listTemplate = '<ul>' +
|
listTemplate = '<ul>' +
|
||||||
'<li class="header">' +
|
'<li class="header">' +
|
||||||
'<a class="icon"/>' +
|
'<a class="icon"/>' +
|
||||||
'<a class="label" href="#"><span class="l10n-name"></span></a>' +
|
'<a class="label" href="#"><span class="l10n-name"/></a>' +
|
||||||
'<a class="date" href="#"><span class="l10n-lastModified"></span></a>' +
|
'<a class="date" href="#"><span class="l10n-lastModified"/></a>' +
|
||||||
'<a class="size" href="#"><span class="l10n-size"></span></a>' +
|
'<a class="size" href="#"><span class="l10n-size"/></a>' +
|
||||||
'</li>' +
|
'</li>' +
|
||||||
'</ul>',
|
'</ul>',
|
||||||
emptyTemplate = '<div class="empty l10n-empty"/>',
|
emptyTemplate = '<div class="empty l10n-empty"/>',
|
||||||
|
|
|
@ -51,7 +51,7 @@ class Entry {
|
||||||
$this->is_folder = is_dir($this->abs_path);
|
$this->is_folder = is_dir($this->abs_path);
|
||||||
$this->abs_href = $this->app->get_abs_href($abs_path, $this->is_folder);
|
$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) {
|
if ($this->is_folder) {
|
||||||
$this->size = null;
|
$this->size = null;
|
||||||
|
@ -61,7 +61,7 @@ class Entry {
|
||||||
$this->size = intval(preg_replace("/\s.*$/", "", `$cmd`), 10);
|
$this->size = intval(preg_replace("/\s.*$/", "", `$cmd`), 10);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->size = filesize($this->abs_path);
|
$this->size = @filesize($this->abs_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->is_content_fetched = false;
|
$this->is_content_fetched = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue