diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2005-08-30 20:04:17 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2005-08-30 20:04:17 +0000 |
| commit | 5e14ed2257e08f7eff0a228b537e860380222da6 (patch) | |
| tree | 28affd864b1f1202a1bbf3c9baf5699fb36e3fcf /edit.php | |
| parent | 315f77038ad3024d8d93f136bc37c9bb658c769c (diff) | |
| download | articles-5e14ed2257e08f7eff0a228b537e860380222da6.tar.gz articles-5e14ed2257e08f7eff0a228b537e860380222da6.tar.bz2 articles-5e14ed2257e08f7eff0a228b537e860380222da6.zip | |
clean up author name code
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.11 2005/08/28 20:34:20 squareing Exp $ +// $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.12 2005/08/30 20:04:17 squareing Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -57,11 +57,12 @@ if( !empty( $_REQUEST['preview'] ) ) { $gBitSmarty->assign_by_ref( 'article', $article ); } else { $gContent->invokeServices( 'content_edit_function' ); + if( empty( $gContent->mInfo['author_name'] ) ) { + $gContent->mInfo['author_name'] = $gBitUser->getDisplayName(); + } $gBitSmarty->assign_by_ref('article', $gContent->mInfo); } -$gBitSmarty->assign( 'author_name', $gBitUser->getDisplayName() ); - if( !empty( $_REQUEST["save"] ) ) { if( empty( $_REQUEST["rating"] ) ) $_REQUEST['rating'] = 0; if( empty( $_REQUEST['topic_id'] ) ) $_REQUEST['topic_id'] = 0; |
