mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
bugfix - link highlighting was malfunctioning on news.php?all after leaving the first page.
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
|
||||||
| $Revision: 1.4 $
|
| $Revision: 1.5 $
|
||||||
| $Date: 2007-02-05 05:02:25 $
|
| $Date: 2007-02-13 23:24:36 $
|
||||||
| $Author: e107coders $
|
| $Author: e107coders $
|
||||||
+---------------------------------------------------------------+
|
+---------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -327,12 +327,18 @@ function hilite($link,$enabled=''){
|
|||||||
$lnk = explode(".",$link_qry); // link queries.
|
$lnk = explode(".",$link_qry); // link queries.
|
||||||
$qry = explode(".",e_QUERY); // current page queries.
|
$qry = explode(".",e_QUERY); // current page queries.
|
||||||
|
|
||||||
|
if($qry[0] == "item")
|
||||||
if($qry[0] == "item"){
|
{
|
||||||
return ($qry[2] == $lnk[1]) ? TRUE : FALSE;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user