summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorSylvie Greverend <sylvieg@users.sourceforge.net>2006-05-31 19:49:14 +0000
committerSylvie Greverend <sylvieg@users.sourceforge.net>2006-05-31 19:49:14 +0000
commit04a8e6da50ed5b1692e436f579c3dbd3c2570801 (patch)
tree1aa18698cad628c94c0bb09daf07a7e6292ec367 /edit.php
parent888ea9992cc9615d78ffc604258a382322c1915a (diff)
downloadarticles-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.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 5002a31..d0dcfef 100644
--- a/edit.php
+++ b/edit.php
@@ -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 );