diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-01-13 12:01:13 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-01-13 12:01:13 +0000 |
| commit | e7d5e70ccc37252695e49b4b14665aa815a7cc86 (patch) | |
| tree | 90b1a1fb0d9f943a2162d2b8eeacd659842fc2e1 | |
| parent | 6b538ed6fe68669807edef13974bc543c973c7d9 (diff) | |
| download | nexus-e7d5e70ccc37252695e49b4b14665aa815a7cc86.tar.gz nexus-e7d5e70ccc37252695e49b4b14665aa815a7cc86.tar.bz2 nexus-e7d5e70ccc37252695e49b4b14665aa815a7cc86.zip | |
when the content_id is given, use getDisplayUrl() to get direct and nicer urls
| -rw-r--r-- | Nexus.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ * * @abstract * @author xing <xing@synapse.plus.com> -* @version $Revision: 1.18 $ +* @version $Revision: 1.19 $ * @package nexus */ @@ -329,7 +329,9 @@ class Nexus extends NexusSystem { $ret .= $pItemHash['rsrc']; break; case 'content_id': - $ret .= BIT_ROOT_URL.'index.php?content_id='.$pItemHash['rsrc']; + if( $obj = LibertyBase::getLibertyObject( $pItemHash['rsrc'] ) ) { + $ret = $obj->getDisplayUrl(); + } break; case 'structure_id': $ret .= BIT_ROOT_URL.'index.php?structure_id='.$pItemHash['rsrc']; |
