Skip to content
Snippets Groups Projects
Unverified Commit 459ae6d9 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

User proper anonymous function

parent 8b0051eb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment