diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-03-02 11:15:10 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-03-02 11:15:10 +0000 |
| commit | d47099871d0095f58d5b83f3877512c92e4fbbdf (patch) | |
| tree | 0aadfa96b9980ba0b58c5ba87e7a76db462e27fb /modules | |
| parent | cc3e3bb51cbcb920b51e94f7f1cd32928cb2da87 (diff) | |
| download | liberty-d47099871d0095f58d5b83f3877512c92e4fbbdf.tar.gz liberty-d47099871d0095f58d5b83f3877512c92e4fbbdf.tar.bz2 liberty-d47099871d0095f58d5b83f3877512c92e4fbbdf.zip | |
fix content_type_guid handling when title of module is set
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_last_changes.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mod_last_changes.php b/modules/mod_last_changes.php index bbeeece..2499098 100644 --- a/modules/mod_last_changes.php +++ b/modules/mod_last_changes.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_changes.php,v 1.9 2006/02/05 10:02:39 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/modules/mod_last_changes.php,v 1.10 2007/03/02 11:15:10 squareing Exp $ * @package liberty * @subpackage modules * Params: @@ -22,9 +22,7 @@ if( !empty( $gQueryUser->mUserId ) ) { if( empty( $module_title ) ) { if( !empty( $module_params['content_type_guid'] ) && !empty( $gLibertySystem->mContentTypes[$module_params['content_type_guid']] ) ) { $title = tra( "Last Changes" ).': '.tra( $gLibertySystem->mContentTypes[$module_params['content_type_guid']]['content_description'] ); - $gBitSmarty->assign( 'contentType', $module_params['content_type_guid'] ); } else { - $gBitSmarty->assign( 'contentType', FALSE ); $title = tra( "Last Changes" ); } $gBitSmarty->assign( 'moduleTitle', $title ); @@ -34,6 +32,8 @@ if( !empty( $module_params['show_date'] ) ) { $gBitSmarty->assign( 'showDate' , TRUE ); } +$gBitSmarty->assign( 'contentType', !empty( $module_params['content_type_guid'] ) ? $module_params['content_type_guid'] : NULL ); + $listHash = array( 'content_type_guid' => !empty( $module_params['content_type_guid'] ) ? $module_params['content_type_guid'] : NULL, 'offset' => 0, |
