From 65c3e0a802c7550de65d5fec988e074a2c4d96c3 Mon Sep 17 00:00:00 2001 From: Nick Palmer Date: Mon, 26 Feb 2007 17:19:33 +0000 Subject: Fix a bug in getDisplayUrl. Nexus for pigeonhole by content_id now works. --- Pigeonholes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Pigeonholes.php') diff --git a/Pigeonholes.php b/Pigeonholes.php index cb808e8..bf59175 100644 --- a/Pigeonholes.php +++ b/Pigeonholes.php @@ -1,6 +1,6 @@ - * @version $Revision: 1.79 $ + * @version $Revision: 1.80 $ * @package pigeonholes */ @@ -86,6 +86,7 @@ class Pigeonholes extends LibertyContent { $this->mInfo['display_name'] = BitUser::getTitle( $this->mInfo ); $this->mInfo['editor'] = ( isset( $row['modifier_real_name'] ) ? $row['modifier_real_name'] : $row['modifier_user'] ); $this->mInfo['display_link'] = $this->getDisplayLink(); + $this->mInfo['display_url'] = $this->getDisplayUrl(); } // if the content for the pigeonhole is requested, get it @@ -808,7 +809,7 @@ class Pigeonholes extends LibertyContent { global $gBitSystem; $ret = NULL; // try to get the correct content_id from anywhere possible - if( !@BitBase::verifyId( $pContentId ) && !empty( $this ) ) { + if( !@BitBase::verifyId( $pContentId ) && !empty( $this->mContentId ) ) { $pContentId = $this->mContentId; } elseif( !@BitBase::verifyId( $pContentId ) && !empty( $pMixed ) ) { $pContentId = $pMixed['content_id']; -- cgit v1.3