summaryrefslogtreecommitdiff
path: root/edit_topic.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-09-01 20:02:03 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-09-01 20:02:03 +0000
commit8ecc521ac89c7ce827ef3b5e3958d460c682c38f (patch)
tree1b034a2cc034ac0f6c743501c163ac911005f3e5 /edit_topic.php
parenta61ef52b01a2f7bc0bf753ecdad52ad572aebc9b (diff)
downloadarticles-8ecc521ac89c7ce827ef3b5e3958d460c682c38f.tar.gz
articles-8ecc521ac89c7ce827ef3b5e3958d460c682c38f.tar.bz2
articles-8ecc521ac89c7ce827ef3b5e3958d460c682c38f.zip
remove active / inactive option until we have sorted out the sql
Diffstat (limited to 'edit_topic.php')
-rw-r--r--edit_topic.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/edit_topic.php b/edit_topic.php
index a270120..38a9dc2 100644
--- a/edit_topic.php
+++ b/edit_topic.php
@@ -4,13 +4,13 @@ require_once( ARTICLES_PKG_PATH."BitArticle.php" );
include_once( ARTICLES_PKG_PATH."lookup_article_topic_inc.php" );
-if (!$gBitSystem->verifyPackage('articles')) {
+if( !$gBitSystem->verifyPackage( 'articles' ) ) {
$smarty->assign( 'msg', tra( "This package is disabled" ) . ": Articles" );
$gBitSystem->display( "error.tpl" );
die;
}
-if (!$gContent->isValid()) {
+if( !$gContent->isValid() ) {
$smarty->assign( 'msg', tra("Article topic not found") );
$gBitSystem->display('error.tpl');
die;
@@ -19,11 +19,10 @@ if (!$gContent->isValid()) {
$smarty->assign_by_ref( 'topic_info', $gContent->mInfo);
if( isset( $_REQUEST["fSubmitSaveTopic"] ) ) {
-
$gContent->storeTopic( $_REQUEST );
$gContent->loadTopic();
header( "Location: " . ARTICLES_PKG_URL . "admin/admin_topics.php" );
-} elseif ( isset($_REQUEST['fRemoveTopicImage']) ) {
+} elseif( isset( $_REQUEST['fRemoveTopicImage'] ) ) {
$gContent->removeTopicImage();
}