diff options
author | friendica <info@friendica.com> | 2014-06-23 17:05:03 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-23 17:05:03 -0700 |
commit | b2feb264928908677e4c2b8de4722a2dc93d5ffa (patch) | |
tree | 1cc3da6df64459cd27b2d97f2fc48f44f57804b3 /mod | |
parent | 181623030ba0903431c4f3184f8abb1c4d639ec5 (diff) | |
download | volse-hubzilla-b2feb264928908677e4c2b8de4722a2dc93d5ffa.tar.gz volse-hubzilla-b2feb264928908677e4c2b8de4722a2dc93d5ffa.tar.bz2 volse-hubzilla-b2feb264928908677e4c2b8de4722a2dc93d5ffa.zip |
clean up the awful descriptive text on thing input
Diffstat (limited to 'mod')
-rw-r--r-- | mod/thing.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/thing.php b/mod/thing.php index cbf83fdf8..b6d59a3ee 100644 --- a/mod/thing.php +++ b/mod/thing.php @@ -243,12 +243,15 @@ function thing_content(&$a) { } } - if(! local_user()) { + $channel = $a->get_channel(); + + if(! (local_user() && $channel)) { notice( t('Permission denied.') . EOL); return; } $thing_hash = ''; + if(argc() == 3 && argv(1) === 'edit') { $thing_hash = argv(2); @@ -270,7 +273,7 @@ function thing_content(&$a) { '$multiprof' => feature_enabled(local_user(),'multi_profiles'), '$profile_lbl' => t('Select a profile'), '$profile_select' => contact_profile_assign($r[0]['obj_page']), - '$verb_lbl' => t('Select a category of stuff. e.g. I ______ something'), + '$verb_lbl' => $channel['channel_name'], '$verb_select' => obj_verb_selector($r[0]['obj_verb']), '$activity' => array('activity',t('Post an activity'),true,t('Only sends to viewers of the applicable profile')), '$thing_hash' => $thing_hash, @@ -317,7 +320,7 @@ function thing_content(&$a) { '$multiprof' => feature_enabled(local_user(),'multi_profiles'), '$profile_lbl' => t('Select a profile'), '$profile_select' => contact_profile_assign(''), - '$verb_lbl' => t('Select a category of stuff. e.g. I ______ something'), + '$verb_lbl' => $channel['channel_name'], '$activity' => array('activity',t('Post an activity'),true,t('Only sends to viewers of the applicable profile')), '$verb_select' => obj_verb_selector(), '$thing_lbl' => t('Name of thing e.g. something'), |