diff options
| author | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-05-31 19:49:14 +0000 |
|---|---|---|
| committer | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-05-31 19:49:14 +0000 |
| commit | 04a8e6da50ed5b1692e436f579c3dbd3c2570801 (patch) | |
| tree | 1aa18698cad628c94c0bb09daf07a7e6292ec367 /edit.php | |
| parent | 888ea9992cc9615d78ffc604258a382322c1915a (diff) | |
| download | articles-04a8e6da50ed5b1692e436f579c3dbd3c2570801.tar.gz articles-04a8e6da50ed5b1692e436f579c3dbd3c2570801.tar.bz2 articles-04a8e6da50ed5b1692e436f579c3dbd3c2570801.zip | |
if articles list was limited to a topic, write an article from there preselect the topic
Diffstat (limited to 'edit.php')
| -rw-r--r-- | edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.28 2006/05/05 14:31:56 sylvieg Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.29 2006/05/31 19:49:14 sylvieg Exp $ * @package article * @subpackage functions */ @@ -84,6 +84,9 @@ if( !empty( $_REQUEST["save"] ) ) { // Get a topic list $topics = BitArticleTopic::getTopicList( array( 'active_topic' => TRUE ) ); $gBitSmarty->assign_by_ref( 'topics', $topics ); +if ( !empty( $_REQUEST['topic'] ) ) { + $gBitSmarty->assign( 'topic', $_REQUEST['topic'] ); +} // get list of valid types $types = BitArticleType::getTypeList(); $gBitSmarty->assign_by_ref( 'types', $types ); |
