From dfb15e4a7b2bf49487f1cb8707787ef5257714ae Mon Sep 17 00:00:00 2001 From: marijus Date: Wed, 17 Dec 2014 09:50:55 +0100 Subject: fix editing of posts --- include/ItemObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ItemObject.php b/include/ItemObject.php index 68d037722..1ccc236e0 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -292,7 +292,7 @@ class Item extends BaseObject { 'share' => $share, 'rawmid' => $item['mid'], 'plink' => get_plink($item), - 'edpost' => true, // ((feature_enabled($conv->get_profile_owner(),'edit_posts')) ? $edpost : ''), + 'edpost' => $edpost, // ((feature_enabled($conv->get_profile_owner(),'edit_posts')) ? $edpost : ''), 'star' => ((feature_enabled($conv->get_profile_owner(),'star_posts')) ? $star : ''), 'tagger' => ((feature_enabled($conv->get_profile_owner(),'commtag')) ? $tagger : ''), 'filer' => ((feature_enabled($conv->get_profile_owner(),'filing')) ? $filer : ''), -- cgit v1.2.3 From e1999ada58b7194f0184435f4b7b736160cc28e1 Mon Sep 17 00:00:00 2001 From: marijus Date: Wed, 17 Dec 2014 10:01:22 +0100 Subject: fix label of preview button --- include/ItemObject.php | 2 +- include/conversation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ItemObject.php b/include/ItemObject.php index 1ccc236e0..ec8116297 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -635,7 +635,7 @@ class Item extends BaseObject { '$edimg' => t('Image'), '$edurl' => t('Link'), '$edvideo' => t('Video'), - '$preview' => true, // ((feature_enabled($conv->get_profile_owner(),'preview')) ? t('Preview') : ''), + '$preview' => t('Preview'), // ((feature_enabled($conv->get_profile_owner(),'preview')) ? t('Preview') : ''), '$indent' => $indent, '$feature_encrypt' => ((feature_enabled($conv->get_profile_owner(),'content_encrypt')) ? true : false), '$encrypt' => t('Encrypt text'), diff --git a/include/conversation.php b/include/conversation.php index 7ce67e694..a2fb3d162 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1099,7 +1099,7 @@ function status_editor($a,$x,$popup=false) { $jotplugins = ''; $jotnets = ''; - $preview = true; + $preview = t('Preview'); // $preview = ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''); if(x($x,'nopreview')) $preview = ''; -- cgit v1.2.3