From: <dh...@us...> - 2012-08-24 09:15:43
|
Revision: 10095 http://xoops.svn.sourceforge.net/xoops/?rev=10095&view=rev Author: dhcst Date: 2012-08-24 09:15:36 +0000 (Fri, 24 Aug 2012) Log Message: ----------- deactivate options if html no active Modified Paths: -------------- XoopsModules/newbb/branches/alfred/newbb/include/form.post.php Modified: XoopsModules/newbb/branches/alfred/newbb/include/form.post.php =================================================================== --- XoopsModules/newbb/branches/alfred/newbb/include/form.post.php 2012-08-23 18:22:48 UTC (rev 10094) +++ XoopsModules/newbb/branches/alfred/newbb/include/form.post.php 2012-08-24 09:15:36 UTC (rev 10095) @@ -14,7 +14,7 @@ * @package newbb * @since 4.0 * @author Taiwen Jiang <ph...@us...> - * @version $Id: form.post.php 62 2012-08-17 10:15:26Z alfred $ + * @version $Id: form.post.php 2170 2008-09-23 13:40:23Z phppp $ */ if (!defined('XOOPS_ROOT_PATH')) { @@ -214,9 +214,13 @@ $xcode_checkbox->addOption(1, _MD_DOXCODE); $options_tray->addElement($xcode_checkbox); -$br_checkbox = new XoopsFormCheckBox('', 'dobr', $dobr); -$br_checkbox->addOption(1, _MD_DOBR); -$options_tray->addElement($br_checkbox); +if (!$nohtml) { + $br_checkbox = new XoopsFormCheckBox('', 'dobr', $dobr); + $br_checkbox->addOption(1, _MD_DOBR); + $options_tray->addElement($br_checkbox); +} else { + $forum_form->addElement(new XoopsFormHidden('dobr', 1)); +} if ($topic_handler->getPermission($forum_obj, $topic_status, 'signature') && is_object($xoopsUser)) { $attachsig_checkbox = new XoopsFormCheckBox('', 'attachsig', $attachsig); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |