diff options
| author | laetzer <laetzer@users.sourceforge.net> | 2007-05-23 05:26:29 +0000 |
|---|---|---|
| committer | laetzer <laetzer@users.sourceforge.net> | 2007-05-23 05:26:29 +0000 |
| commit | 858e3796f537fc5201b1b549cacc79d64b57b017 (patch) | |
| tree | 700be1fce07d085e3ff1066abec7a9bdc763019b /modules | |
| parent | c7d27cb24fe7582ba57bc84fc3dd4fd5f9a0c474 (diff) | |
| download | articles-858e3796f537fc5201b1b549cacc79d64b57b017.tar.gz articles-858e3796f537fc5201b1b549cacc79d64b57b017.tar.bz2 articles-858e3796f537fc5201b1b549cacc79d64b57b017.zip | |
tried to make module obey user params (module title)
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/mod_articles.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/mod_articles.php b/modules/mod_articles.php index 4ff2157..5f61ccd 100644 --- a/modules/mod_articles.php +++ b/modules/mod_articles.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.12 2007/04/03 16:23:46 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.13 2007/05/23 05:26:29 laetzer Exp $ * @package article * @subpackage modules */ @@ -47,5 +47,10 @@ if( ( !empty( $module_params['topic_id'] ) || !empty( $module_params['topic_name $gBitSmarty->assign( 'moduleTitle', "Articles" ); } +// if user provided a name for this module, use it (overrides guessing above) +if ( !empty($moduleParams['title']) ){ + $gBitSmarty->assign( 'moduleTitle', $moduleParams['title'] ); +} + $gBitSmarty->assign( 'modArticles', $articles['data'] ); -?> +?>
\ No newline at end of file |
