Commit 12038f71 authored by Niklas Fiekas's avatar Niklas Fiekas
Browse files

Extend the note about serialized page arguments.

parent d5435319
......@@ -99,6 +99,8 @@ protected function convertDrupalItem($router_item) {
// Place argument defaults on the route.
// @TODO: For some reason drush test runs have a serialized page_arguments
// but HTTP requests are unserialized. Hack to get around this for now.
// This might be because page arguments aren't unserialized in
// menu_get_item() when the access is denied.
!is_array($router_item['page_arguments']) ? $page_arguments = unserialize($router_item['page_arguments']) : $page_arguments = $router_item['page_arguments'];
foreach ($page_arguments as $k => $v) {
$route[$k] = $v;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment