]> source.dussan.org Git - nextcloud-server.git/commitdiff
pass paramters to file proxies by reference so they can be modified
authorRobin Appelman <icewind1991@gmail.com>
Fri, 21 Oct 2011 13:17:39 +0000 (15:17 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 21 Feb 2012 19:48:47 +0000 (20:48 +0100)
lib/fileproxy.php

index 235fc8bf284f7707a009608147e364b86baae3e8..7e0722b960e35bcb118a954fd5b5f8b3228229f6 100644 (file)
@@ -88,11 +88,11 @@ class OC_FileProxy{
                $operation='pre'.$operation;
                foreach($proxies as $proxy){
                        if($filepath2){
-                               if(!$proxy->$operation($filepath,$filepath2)){
+                               if(!$proxy->$operation(&$filepath,&$filepath2)){
                                        return false;
                                }
                        }else{
-                               if(!$proxy->$operation($filepath)){
+                               if(!$proxy->$operation(&$filepath)){
                                        return false;
                                }
                        }