diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-25 11:20:02 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-25 11:20:02 +0000 |
| commit | 82c819393950660c08a42ac7d4f10e5f4adf05f3 (patch) | |
| tree | 2737feba4a4a397b3c9e404c6ccf330e4f6371d2 | |
| parent | ac66471295ab6009ea4827815a00fd55aa708e5c (diff) | |
| download | nexus-82c819393950660c08a42ac7d4f10e5f4adf05f3.tar.gz nexus-82c819393950660c08a42ac7d4f10e5f4adf05f3.tar.bz2 nexus-82c819393950660c08a42ac7d4f10e5f4adf05f3.zip | |
trying to use getDisplayUrl() - this needs to be standardised accross packages.
| -rw-r--r-- | Nexus.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ * * @abstract * @author xing <xing@synapse.plus.com> -* @version $Revision: 1.20 $ +* @version $Revision: 1.21 $ * @package nexus */ @@ -337,15 +337,15 @@ class Nexus extends NexusSystem { break; case 'content_id': // create *one* object for each object *type* to call virtual methods. - $guid = $this->mDb->getOne( "SELECT `content_type_guid` FROM `".BIT_DB_PREFIX."liberty_content` WHERE `content_id`=?", array( $pItemHash['rsrc'] )); - $type = &$contentTypes[$guid]; + $row = $this->mDb->getRow( "SELECT `title`,`content_id`,`content_type_guid` FROM `".BIT_DB_PREFIX."liberty_content` WHERE `content_id`=?", array( $pItemHash['rsrc'] )); + $type = &$contentTypes[$row['content_type_guid']]; if( empty( $type['content_object'] )) { include_once( $gBitSystem->mPackages[$type['handler_package']]['path'].$type['handler_file'] ); $type['content_object'] = new $type['handler_class'](); } - $ret = $type['content_object']->getDisplayUrl( $pItemHash['rsrc'] ); + $ret = $type['content_object']->getDisplayUrl( NULL, $row ); break; case 'structure_id': $ret .= BIT_ROOT_URL.'index.php?structure_id='.$pItemHash['rsrc']; |
