From 38b0dd0dd0930bbd55fe023cce723ae42940044d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 27 Feb 2017 20:39:46 +0100 Subject: [PATCH] fix PHP Deprecated: Non-static method EGroupware\Api\Vfs\Sqlfs\StreamWrapper::url_stat() should not be called statically --- api/src/Storage/History.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/Storage/History.php b/api/src/Storage/History.php index 38426e7b97..0ed5db8b36 100644 --- a/api/src/Storage/History.php +++ b/api/src/Storage/History.php @@ -227,7 +227,8 @@ class History // Add in files, if possible if($GLOBALS['egw_info']['user']['apps']['filemanager'] && - $file = Api\Vfs\Sqlfs\StreamWrapper::url_stat("/apps/{$query['appname']}/{$query['record_id']}",STREAM_URL_STAT_LINK)) + ($sqlfs_sw = new Api\Vfs\Sqlfs\StreamWrapper()) && + ($file = $sqlfs_sw->url_stat("/apps/{$query['appname']}/{$query['record_id']}",STREAM_URL_STAT_LINK))) { $_query[] = array( 'table' => Api\Vfs\Sqlfs\StreamWrapper::TABLE,