aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-08 20:05:30 -0700
committerzotlabs <mike@macgirvin.com>2018-04-08 20:05:30 -0700
commite0255c0dc45d8c670b865087336b4807d831e0fb (patch)
tree3e68745fcf1d6b7ed1e2a92ee7fa4f39acf4baf4 /include
parent6ce3ca1ce02a535938812372ece9377242c2eaa4 (diff)
downloadvolse-hubzilla-e0255c0dc45d8c670b865087336b4807d831e0fb.tar.gz
volse-hubzilla-e0255c0dc45d8c670b865087336b4807d831e0fb.tar.bz2
volse-hubzilla-e0255c0dc45d8c670b865087336b4807d831e0fb.zip
first cut of feature/techlevel merge
Diffstat (limited to 'include')
-rw-r--r--include/features.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/features.php b/include/features.php
index 4859a01db..57a6f7310 100644
--- a/include/features.php
+++ b/include/features.php
@@ -44,7 +44,7 @@ function feature_level($feature,$def) {
return $def;
}
-function get_features($filtered = true) {
+function get_features($filtered = true, $level = (-1)) {
$account = \App::get_account();
@@ -499,7 +499,7 @@ function get_features($filtered = true) {
$arr = $x['features'];
- $techlevel = get_account_techlevel();
+ $techlevel = (($level >= 0) ? $level : get_account_techlevel());
// removed any locked features and remove the entire category if this makes it empty