Fix PHP warning from odfeditor plugin when using assets_dir
This commit is contained in:
parent
91a7cbfc40
commit
78ced412de
1 changed files with 2 additions and 2 deletions
|
@ -97,9 +97,9 @@ class odfviewer extends rcube_plugin
|
|||
$rcmail = rcube::get_instance();
|
||||
$assets_dir = $rcmail->config->get('assets_dir');
|
||||
|
||||
$mtime = filemtime($this->home . '/' . $path);
|
||||
$mtime = @filemtime($this->home . '/' . $path);
|
||||
if (!$mtime && $assets_dir) {
|
||||
$mtime = filemtime($assets_dir . '/plugins/odfviewer/' . $path);
|
||||
$mtime = @filemtime($assets_dir . '/plugins/odfviewer/' . $path);
|
||||
}
|
||||
|
||||
$path = $this->urlbase . $path . ($mtime ? '?s=' . $mtime : '');
|
||||
|
|
Loading…
Add table
Reference in a new issue