diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Route/Route.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/private/Route/Route.php b/lib/private/Route/Route.php index 3a953af9011..c25d08e8bc2 100644 --- a/lib/private/Route/Route.php +++ b/lib/private/Route/Route.php @@ -148,11 +148,12 @@ class Route extends SymfonyRoute implements IRoute { * @return void */ public function actionInclude($file) { - $function = create_function('$param', - 'unset($param["_route"]);' - .'$_GET=array_merge($_GET, $param);' - .'unset($param);' - .'require_once "'.$file.'";'); + $function = function($param) use ($file) { + unset($param["_route"]); + $_GET=array_merge($_GET, $param); + unset($param); + require_once "'.$file.'"; + } ; $this->action($function); } } |