turn off categories feature by default
This commit is contained in:
@@ -104,8 +104,11 @@ function fileas_widget($baseurl,$selected = '') {
|
||||
}
|
||||
|
||||
function categories_widget($baseurl,$selected = '') {
|
||||
$a = get_app();
|
||||
|
||||
if(! featured_enabled($a->profile['profile_uid'],'categories'))
|
||||
return '';
|
||||
|
||||
$a = get_app();
|
||||
|
||||
$terms = array();
|
||||
$r = q("select distinct(term) from term where uid = %d and type = %d order by term asc",
|
||||
|
||||
@@ -1684,6 +1684,8 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||
$jotplugins = '';
|
||||
$jotnets = '';
|
||||
|
||||
$catsenabled = feature_enabled($x['profile_uid'],'categories');
|
||||
|
||||
call_hooks('jot_tool', $jotplugins);
|
||||
call_hooks('jot_networks', $jotnets);
|
||||
|
||||
@@ -1712,6 +1714,7 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
|
||||
'$shortnoloc' => t('clear location'),
|
||||
'$title' => "",
|
||||
'$placeholdertitle' => t('Set title'),
|
||||
'$catsenabled' => $catsenabled,
|
||||
'$category' => "",
|
||||
'$placeholdercategory' => t('Categories (comma-separated list)'),
|
||||
'$wait' => t('Please wait'),
|
||||
|
||||
Reference in New Issue
Block a user