pass paramters to file proxies by reference so they can be modified

This commit is contained in:
Robin Appelman 2011-10-21 15:17:39 +02:00 committed by Robin Appelman
parent 86d2927c02
commit b6ed61eab2

View 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;
}
}