| 487 |
if ($pos !== false) $link = substr( $link, $pos+1 ). '&Itemid='.$this->Itemid; |
if ($pos !== false) $link = substr( $link, $pos+1 ). '&Itemid='.$this->Itemid; |
| 488 |
parse_str( $link, $temp ); |
parse_str( $link, $temp ); |
| 489 |
/** this is a patch, need to rework when globals are handled better */ |
/** this is a patch, need to rework when globals are handled better */ |
| 490 |
foreach ($temp as $k=>$v) $_GET[$k] = $v; |
foreach ($temp as $k=>$v) $_GET[$k] = $_REQUEST[$k] = $v; |
| 491 |
if (isset($temp['option'])) $option = $temp['option']; |
if (isset($temp['option'])) $option = $temp['option']; |
| 492 |
else return ''; |
else return ''; |
| 493 |
} |
} |
| 1583 |
if ($this->getIDLikeLink($dblink) == 0) return true; |
if ($this->getIDLikeLink($dblink) == 0) return true; |
| 1584 |
if ($Itemid) { |
if ($Itemid) { |
| 1585 |
$menu =& $this->getMenuByID($Itemid); |
$menu =& $this->getMenuByID($Itemid); |
|
// special case for typed content - need a better way to handle this - alwarren |
|
|
if ($menu->type == 'content_typed') { |
|
|
parse_str( $menu->link, $temp ); |
|
|
$GLOBALS['task'] = 'view'; |
|
|
$_REQUEST['task'] = 'view'; |
|
|
$GLOBALS['id'] = $temp['id']; |
|
|
$_REQUEST['id'] = $temp['id']; |
|
|
} |
|
| 1586 |
if (strpos($menu->link,$dblink) ===0) { |
if (strpos($menu->link,$dblink) ===0) { |
| 1587 |
$access = $menu->access; |
$access = $menu->access; |
| 1588 |
} elseif ($menu_option == 'com_content' AND $Itemid == 1) { |
} elseif ($menu_option == 'com_content' AND $Itemid == 1) { |