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

bugfix - link highlighting was malfunctioning on news.php?all after leaving the first page.

This commit is contained in:
CaMer0n
2007-02-13 23:24:36 +00:00
parent ce959f7485
commit 714aadc49c

View File

@@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
| $Revision: 1.4 $
| $Date: 2007-02-05 05:02:25 $
| $Revision: 1.5 $
| $Date: 2007-02-13 23:24:36 $
| $Author: e107coders $
+---------------------------------------------------------------+
*/
@@ -327,12 +327,18 @@ function hilite($link,$enabled=''){
$lnk = explode(".",$link_qry); // link queries.
$qry = explode(".",e_QUERY); // current page queries.
if($qry[0] == "item"){
if($qry[0] == "item")
{
return ($qry[2] == $lnk[1]) ? TRUE : FALSE;
}
if($lnk[0] == $qry[0] && $lnk[1] == $qry[1]){
if($qry[0] == "all" && $lnk[0] == "all")
{
return TRUE;
}
if($lnk[0] == $qry[0] && $lnk[1] == $qry[1])
{
return TRUE;
}