make store function static
This commit is contained in:
parent
87b98dab25
commit
b05f05ec4a
|
@ -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 New Issue