Commit fc5927b1 authored by merlinofchaos's avatar merlinofchaos

#241917 by John Morahan: Some menu alter stuff I left out of a previous patch....

#241917 by John Morahan: Some menu alter stuff I left out of a previous patch. (This time for sure!)
parent 616bc613
......@@ -163,7 +163,7 @@ function views_menu_alter(&$callbacks) {
// in the display path, then we use this constructed regex
// (which will be something like '#foo/%[^/]*/bar#') to
// search through the existing paths.
$regex = '#'. preg_replace('#%views_arg#', '%[^/]*', implode('|', array_keys($result))) .'#';
$regex = '#^('. preg_replace('#%views_arg#', '%[^/]*', implode('|', array_keys($result))) .')$#';
$matches = preg_grep($regex, array_keys($callbacks));
// Remove any conflicting items that were found.
......
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