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:
13
class2.php
13
class2.php
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user