From f3234366d63fc2789dcccd22308240e681b552c9 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Wed, 13 Jun 2007 20:10:17 +0000 Subject: fix nexus menus for now - need to fully load() every object that we can getDisplayLink() as it's not standardised throughout. this should be amended some time soon. --- Nexus.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Nexus.php b/Nexus.php index 1a1dc7b..a05c54a 100644 --- a/Nexus.php +++ b/Nexus.php @@ -4,7 +4,7 @@ * * @abstract * @author xing -* @version $Revision: 1.22 $ +* @version $Revision: 1.23 $ * @package nexus */ @@ -345,13 +345,16 @@ class Nexus extends NexusSystem { $type['content_object'] = new $type['handler_class'](); } - $ret = $type['content_object']->getDisplayUrl( NULL, $row ); + $type['content_object']->mContentId = $row['content_id']; + $type['content_object']->load(); + $ret = $type['content_object']->getDisplayUrl(); break; case 'structure_id': $ret .= BIT_ROOT_URL.'index.php?structure_id='.$pItemHash['rsrc']; break; } } + vd($ret); return $ret; } -- cgit v1.3