Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-19 23:18:09 +0400
committerVincent Petry <pvince81@owncloud.com>2013-12-19 23:18:09 +0400
commit1c340444a43d76c388153059aefd24276d8347a9 (patch)
tree5ce6a7c7c9feeb9cf6e1e793d7d742af709ed5be /lib/private/fileproxy.php
parent526e8730733f1ac1be76deacf2e45fba37f6fbb8 (diff)
Added test cleanup listener to detect untidy tests
After each test suite, detects whether there are stray datafiles, hooks or proxies, then show a warning and clear them.
Diffstat (limited to 'lib/private/fileproxy.php')
-rw-r--r--lib/private/fileproxy.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/fileproxy.php b/lib/private/fileproxy.php
index 52ec79b4bdb..2997aaf81b6 100644
--- a/lib/private/fileproxy.php
+++ b/lib/private/fileproxy.php
@@ -67,7 +67,11 @@ class OC_FileProxy{
self::$proxies[]=$proxy;
}
- public static function getProxies($operation) {
+ public static function getProxies($operation = null) {
+ if ($operation === null) {
+ // return all
+ return self::$proxies;
+ }
$proxies=array();
foreach(self::$proxies as $proxy) {
if(method_exists($proxy, $operation)) {