verifyPackage( 'articles' ) ) { $gBitSmarty->assign( 'msg', tra( "This package is disabled" ) . ": Articles" ); $gBitSystem->display( "error.tpl" ); die; } if( !$gContent->isValid() ) { $gBitSmarty->assign( 'msg', tra("Article topic not found") ); $gBitSystem->display('error.tpl'); die; } $gBitSmarty->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'] ) ) { $gContent->removeTopicImage(); } $gBitSystem->display( 'bitpackage:articles/edit_topic.tpl' ); ?>