diff options
Diffstat (limited to 'include/features.php')
-rw-r--r-- | include/features.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/features.php b/include/features.php index 36f4f0433..c865f6754 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(); @@ -508,7 +508,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 |