mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Add exclusion list for modules like socialxe
This commit is contained in:
parent
e9bec851f9
commit
075f1d935d
1 changed files with 12 additions and 2 deletions
|
|
@ -54,6 +54,13 @@ class Router
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of legacy modules whose URLs should not be shortened.
|
||||||
|
*/
|
||||||
|
protected static $_except_modules = array(
|
||||||
|
'socialxe' => true,
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Internal cache for module and route information.
|
* Internal cache for module and route information.
|
||||||
*/
|
*/
|
||||||
|
|
@ -353,8 +360,11 @@ class Router
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try the generic mid/act pattern.
|
// Try the generic mid/act pattern.
|
||||||
self::$_route_cache[$keys_string] = '$' . $prefix_type . '/$act';
|
if ($prefix_type !== 'module' || !isset(self::$_except_modules[$args[$prefix_type]]))
|
||||||
return $args[$prefix_type] . '/' . $args['act'] . (count($args2) ? ('?' . http_build_query($args2)) : '');
|
{
|
||||||
|
self::$_route_cache[$keys_string] = '$' . $prefix_type . '/$act';
|
||||||
|
return $args[$prefix_type] . '/' . $args['act'] . (count($args2) ? ('?' . http_build_query($args2)) : '');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try registered global routes.
|
// Try registered global routes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue