1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Issue #3912 - Reverse lookup e_ROUTE from e_url.php 'legacy' entry.

This commit is contained in:
Cameron
2021-02-21 14:10:47 -08:00
parent 55de6b1533
commit e425349661
5 changed files with 118 additions and 6 deletions

View File

@@ -1748,6 +1748,19 @@ if($fpUrl === $fpPref)
}
unset($fpUrl, $fpPref);
$dbg->logTime('Legacy Route detection');
// Reverse lookup of current URI against legacy e_url entry to determine route.
if(!deftrue('e_SINGLE_ENTRY') && deftrue('e_CURRENT_PLUGIN'))
{
if($route = e107::detectRoute(e_CURRENT_PLUGIN, e_REQUEST_URI))
{
e107::route($route);
}
unset($route);
}