aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/editwebpage.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index 9f6df9536..7cf738989 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -151,7 +151,7 @@ function editwebpage_content(&$a) {
'$geotag' => $geotag,
'$nickname' => $channel['channel_address'],
'$confirmdelete' => t('Delete webpage?'),
- '$bbco_autocomplete'=> 'bbcode',
+ '$bbco_autocomplete'=> (($mimetype == 'text/bbcode') ? 'bbcode' : '')
));
$tpl = get_markup_template("jot.tpl");
@@ -216,7 +216,7 @@ function editwebpage_content(&$a) {
'$defexpire' => '',
'$feature_expire' => false,
'$expires' => t('Set expiration date'),
- '$bbco_autocomplete'=> 'bbcode'
+ '$bbcode' => (($mimetype == 'text/bbcode') ? true : false)
));
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(