diff options
| author | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-05-22 21:00:48 +0000 |
|---|---|---|
| committer | Tekimaki <tekimaki_admin@users.sourceforge.net> | 2009-05-22 21:00:48 +0000 |
| commit | a41f6f3f0a18d5b067965f3931fd4e5d3b5b6a63 (patch) | |
| tree | d31c0085ae07fc5c254cef6895a9e1f5b83a8fdd | |
| parent | fa7a0c56c53d37ecb6fb804139b33120d33780bd (diff) | |
| download | liberty-a41f6f3f0a18d5b067965f3931fd4e5d3b5b6a63.tar.gz liberty-a41f6f3f0a18d5b067965f3931fd4e5d3b5b6a63.tar.bz2 liberty-a41f6f3f0a18d5b067965f3931fd4e5d3b5b6a63.zip | |
cant use getDisplayUrl because individual classes have gone off the reservation changing the params they accept. we need a rule that override methods take the same basic params that the root class does so that these efficiencies can be relied on. no reason thats not possible and still allow individual packages to have their ego moments.
| -rw-r--r-- | LibertyContent.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/LibertyContent.php b/LibertyContent.php index cd9d821..da97121 100644 --- a/LibertyContent.php +++ b/LibertyContent.php @@ -3,7 +3,7 @@ * Management of Liberty content * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.403 2009/05/20 15:47:53 tekimaki_admin Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.404 2009/05/22 21:00:48 tekimaki_admin Exp $ * @author spider <spider@steelsun.com> */ @@ -2456,7 +2456,13 @@ class LibertyContent extends LibertyBase { } else { $aux['title'] = $type['content_object']->getTitle( $aux ); $aux['display_link'] = $type['content_object']->getDisplayLink( $aux['title'], $aux ); - $aux['display_url'] = $type['content_object']->getDisplayUrl( NULL, $aux ); + /** + * @TODO standardize getDisplayUrl params + * nice try, but you can't do this because individual classes have gone off the reservation changing the params they accept + * for distributed packages we need to enforce that method overrides all take the same basic params. + **/ + // $aux['display_url'] = $type['content_object']->getDisplayUrl( NULL, $aux ); + $aux['display_url'] = BIT_ROOT_URL."index.php?content_id=".$aux['content_id']; } if( !empty( $pListHash['thumbnail_size'] ) ) { |
