summaryrefslogtreecommitdiffstats
path: root/lib/route.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-28 22:19:37 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-28 22:20:17 +0200
commitdbdf3bde7ccf721cfc1efa4d13262bd6f444de73 (patch)
tree34ab13505a5a5bb83570e0c113817977d95c5c5d /lib/route.php
parentc9317b5a68baac268e8b24a462065a5e9e3164e7 (diff)
downloadnextcloud-server-dbdf3bde7ccf721cfc1efa4d13262bd6f444de73.tar.gz
nextcloud-server-dbdf3bde7ccf721cfc1efa4d13262bd6f444de73.zip
Implement route for download in OC_Search_Provider_File
Diffstat (limited to 'lib/route.php')
-rw-r--r--lib/route.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/route.php b/lib/route.php
index 772446e5615..ba9d1724d12 100644
--- a/lib/route.php
+++ b/lib/route.php
@@ -64,4 +64,9 @@ class OC_Route extends Route {
$this->setDefault('action', $action);
return $this;
}
+
+ public function actionInclude($file) {
+ $function = create_function('$param', 'unset($param["_route"]);$_GET=$param;unset($param);require_once "'.$file.'";');
+ $this->action($function);
+ }
}