aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-13 11:56:43 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-13 11:56:43 +0200
commitb81291cd5c2d773c73d198fc97da31ecf16af880 (patch)
tree020225b5ff9f7074e516a39a4be4b2c793b3561a /mod
parentf4a27afee9c1dc12afd2a15adef9f33654fa5ddd (diff)
downloadvolse-hubzilla-b81291cd5c2d773c73d198fc97da31ecf16af880.tar.gz
volse-hubzilla-b81291cd5c2d773c73d198fc97da31ecf16af880.tar.bz2
volse-hubzilla-b81291cd5c2d773c73d198fc97da31ecf16af880.zip
some bbcode autocomplete refinement for edit webpage
Diffstat (limited to 'mod')
-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(