Browse Source

make store function static

tags/v5.0.0beta1
Björn Schießle 11 years ago
parent
commit
b05f05ec4a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/files_versions/lib/versions.php

+ 1
- 1
apps/files_versions/lib/versions.php View File

@@ -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…
Cancel
Save