mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
make store function static
This commit is contained in:
parent
87b98dab25
commit
b05f05ec4a
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class Storage {
|
|||
/**
|
||||
* store a new version of a file.
|
||||
*/
|
||||
public function store($filename) {
|
||||
public static function store($filename) {
|
||||
if(\OCP\Config::getSystemValue('files_versions', Storage::DEFAULTENABLED)=='true') {
|
||||
$owner = \OC\Files\Filesystem::getOwner($filename);
|
||||
if ( $owner != \OCP\User::getUser() ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue