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

Fix for active link detection with SEF Urls.

This commit is contained in:
Cameron 2016-03-10 21:53:59 -08:00
parent aaba664983
commit 9d1d6d040d

View File

@ -1590,10 +1590,14 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
if(isset($data['link_active'])) return $data['link_active'];
$dbLink = e_HTTP. e107::getParser()->replaceConstants($data['link_url'], TRUE, TRUE);
// $dbLink = e107::getParser()->replaceConstants($data['link_url'], TRUE, TRUE);
$dbLink = str_replace("//","/",$dbLink); // precaution for e_HTTP inclusion above.
if(E107_DBG_PATH)
{
// e107::getMessage()->addDebug("db=".$dbLink);
e107::getMessage()->addDebug("<h3>Sitelinks::isActive</h3>
db=".$dbLink."<br />url=".e_REQUEST_URI."<br /><br />");
}
if($exactMatch)