aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Editwebpage.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-04-27 05:56:19 -0400
committerAndrew Manning <tamanning@zoho.com>2016-04-27 05:56:19 -0400
commitf975d9dfe457cb6912e7e0907406a86556537524 (patch)
tree10c02ebfbd5f2acf1f2944b0f28f7c97c4b8454a /Zotlabs/Module/Editwebpage.php
parentf027bf81cdaddee5d6474199c1b7adce50e6e07d (diff)
parenta6baa5a6da5f5231c119cab3170f68cf271f703b (diff)
downloadvolse-hubzilla-f975d9dfe457cb6912e7e0907406a86556537524.tar.gz
volse-hubzilla-f975d9dfe457cb6912e7e0907406a86556537524.tar.bz2
volse-hubzilla-f975d9dfe457cb6912e7e0907406a86556537524.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into help-content
Diffstat (limited to 'Zotlabs/Module/Editwebpage.php')
-rw-r--r--Zotlabs/Module/Editwebpage.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/Zotlabs/Module/Editwebpage.php b/Zotlabs/Module/Editwebpage.php
index 01d9e8aad..d3b031db2 100644
--- a/Zotlabs/Module/Editwebpage.php
+++ b/Zotlabs/Module/Editwebpage.php
@@ -176,7 +176,7 @@ class Editwebpage extends \Zotlabs\Web\Controller {
'$webpage' => ITEM_TYPE_WEBPAGE,
'$placeholdpagetitle' => t('Page link title'),
'$pagetitle' => $page_title,
- '$writefiles' => perm_is_allowed($owner, get_observer_hash(), 'write_storage'),
+ '$writefiles' => (($mimetype == 'text/bbcode') ? perm_is_allowed($owner, get_observer_hash(), 'write_storage') : false),
'$action' => 'item',
'$share' => t('Edit'),
'$bold' => t('Bold'),
@@ -184,15 +184,10 @@ class Editwebpage extends \Zotlabs\Web\Controller {
'$underline' => t('Underline'),
'$quote' => t('Quote'),
'$code' => t('Code'),
- '$upload' => t('Upload photo'),
'$attach' => t('Attach file'),
- '$weblink' => t('Insert web link'),
- '$youtube' => t('Insert YouTube video'),
- '$video' => t('Insert Vorbis [.ogg] video'),
- '$audio' => t('Insert Vorbis [.ogg] audio'),
- '$setloc' => t('Set your location'),
- '$noloc' => ((get_pconfig($uid, 'system', 'use_browser_location')) ? t('Clear browser location') : ''),
- '$wait' => t('Please wait'),
+ '$weblink' => (($mimetype == 'text/bbcode') ? t('Insert web link') : false),
+ '$setloc' => false, //t('Set your location'),
+ '$noloc' => false, //((get_pconfig($uid, 'system', 'use_browser_location')) ? t('Clear browser location') : ''),
'$permset' => t('Permission settings'),
'$ptyp' => $itm[0]['type'],
'$content' => undo_post_tagging($itm[0]['body']),
@@ -218,8 +213,6 @@ class Editwebpage extends \Zotlabs\Web\Controller {
'$jotplugins' => $jotplugins,
'$sourceapp' => \App::$sourcename,
'$defexpire' => '',
- '$feature_expire' => false,
- '$expires' => t('Set expiration date'),
'$bbcode' => (($mimetype == 'text/bbcode') ? true : false)
));