summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-01-13 12:01:13 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-01-13 12:01:13 +0000
commite7d5e70ccc37252695e49b4b14665aa815a7cc86 (patch)
tree90b1a1fb0d9f943a2162d2b8eeacd659842fc2e1
parent6b538ed6fe68669807edef13974bc543c973c7d9 (diff)
downloadnexus-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.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Nexus.php b/Nexus.php
index 07ab3d7..da275c1 100644
--- a/Nexus.php
+++ b/Nexus.php
@@ -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'];