hide featured app category in the app category widget

This commit is contained in:
Mario Vavti
2017-01-31 12:53:33 +01:00
parent e1b54b6843
commit a6cbebe03c
3 changed files with 4 additions and 3 deletions

View File

@@ -350,7 +350,7 @@ class Apps {
'$delete' => ((local_channel() && $installed && $mode == 'edit') ? t('Delete') : ''),
'$undelete' => ((local_channel() && $installed && $mode == 'edit') ? t('Undelete') : ''),
'$deleted' => $papp['deleted'],
'$featured' => ((strpos($papp['categories'], 'featured') === false) ? false : true)
'$featured' => ((strpos($papp['categories'], 'nav_featured_app') === false) ? false : true)
));
}
@@ -461,7 +461,7 @@ class Apps {
);
}
else {
store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'featured',escape_tags(z_root() . '/apps/?f=&cat=featured'));
store_item_tag($uid,$r[0]['id'],TERM_OBJ_APP,TERM_CATEGORY,'nav_featured_app',escape_tags(z_root() . '/apps/?f=&cat=nav_featured_app'));
}
}