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