Fixes stat problems on 32bit systems.

This commit is contained in:
Lars Jung 2012-10-12 13:57:27 +02:00
parent b87dc5a45b
commit 7be15da13a
2 changed files with 5 additions and 5 deletions

View File

@ -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"/>',

View File

@ -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;