Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
This commit is contained in:
@@ -1304,6 +1304,8 @@ function status_editor($a, $x, $popup = false) {
|
||||
$id_select = '';
|
||||
|
||||
$webpage = ((x($x,'webpage')) ? $x['webpage'] : '');
|
||||
|
||||
$reset = ((x($x,'reset')) ? $x['reset'] : '');
|
||||
|
||||
$feature_auto_save_draft = ((feature_enabled($x['profile_uid'], 'auto_save_draft')) ? "true" : "false");
|
||||
|
||||
@@ -1329,6 +1331,7 @@ function status_editor($a, $x, $popup = false) {
|
||||
'$nocomment_enabled' => t('Comments enabled'),
|
||||
'$nocomment_disabled' => t('Comments disabled'),
|
||||
'$auto_save_draft' => $feature_auto_save_draft,
|
||||
'$reset' => $reset
|
||||
));
|
||||
|
||||
$tpl = get_markup_template('jot.tpl');
|
||||
@@ -1441,7 +1444,8 @@ function status_editor($a, $x, $popup = false) {
|
||||
'$expiryModalCANCEL' => t('Cancel'),
|
||||
'$expanded' => ((x($x, 'expanded')) ? $x['expanded'] : false),
|
||||
'$bbcode' => ((x($x, 'bbcode')) ? $x['bbcode'] : false),
|
||||
'$parent' => ((array_key_exists('parent',$x) && $x['parent']) ? $x['parent'] : 0)
|
||||
'$parent' => ((array_key_exists('parent',$x) && $x['parent']) ? $x['parent'] : 0),
|
||||
'$reset' => $reset
|
||||
));
|
||||
|
||||
if ($popup === true) {
|
||||
|
||||
@@ -237,8 +237,8 @@ function get_features($filtered = true, $level = (-1)) {
|
||||
|
||||
[
|
||||
'permcats',
|
||||
t('Permission Groups'),
|
||||
t('Provide alternate connection permission roles.'),
|
||||
t('Permission Categories'),
|
||||
t('Create custom connection permission limits'),
|
||||
false,
|
||||
get_config('feature_lock','permcats'),
|
||||
feature_level('permcats',2),
|
||||
|
||||
@@ -1415,15 +1415,21 @@ function unobscure_mail(&$item) {
|
||||
function theme_attachments(&$item) {
|
||||
|
||||
$arr = json_decode($item['attach'],true);
|
||||
|
||||
if(is_array($arr) && count($arr)) {
|
||||
$attaches = array();
|
||||
foreach($arr as $r) {
|
||||
|
||||
$icon = getIconFromType($r['type']);
|
||||
$label = (($r['title']) ? urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8')) : t('Unknown Attachment'));
|
||||
|
||||
if($r['title'])
|
||||
$label = urldecode(htmlspecialchars($r['title'], ENT_COMPAT, 'UTF-8'));
|
||||
|
||||
if(! $label && $r['href'])
|
||||
$label = basename($r['href']);
|
||||
|
||||
//some feeds provide an attachment where title an empty space
|
||||
if($label == ' ')
|
||||
if(! $label || $label == ' ')
|
||||
$label = t('Unknown Attachment');
|
||||
|
||||
$title = t('Size') . ' ' . (($r['length']) ? userReadableSize($r['length']) : t('unknown'));
|
||||
|
||||
Reference in New Issue
Block a user