aboutsummaryrefslogtreecommitdiffstats
path: root/include/apps.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-03 18:41:16 -0700
committerredmatrix <git@macgirvin.com>2016-05-03 18:41:16 -0700
commit3df0bb55221317a17d6e898415ba5d33ede7715d (patch)
tree776d7ecd467768653e162bc3ee523f2b1566af97 /include/apps.php
parentdccdeedb75874ac8a244770cc3be0bf9ee71a0cd (diff)
downloadvolse-hubzilla-3df0bb55221317a17d6e898415ba5d33ede7715d.tar.gz
volse-hubzilla-3df0bb55221317a17d6e898415ba5d33ede7715d.tar.bz2
volse-hubzilla-3df0bb55221317a17d6e898415ba5d33ede7715d.zip
some preliminary structural work for app organisation
Diffstat (limited to 'include/apps.php')
-rw-r--r--include/apps.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/apps.php b/include/apps.php
index fac58b850..dca49a3c6 100644
--- a/include/apps.php
+++ b/include/apps.php
@@ -316,8 +316,13 @@ function app_installed($uid,$app) {
}
-function app_list($uid) {
- $r = q("select * from app where app_channel = %d order by app_name asc",
+function app_list($uid, $deleted = false) {
+ if($deleted)
+ $sql_extra = " and app_deleted = 1 ";
+ else
+ $sql_extra = " and app_deleted = 0 ";
+
+ $r = q("select * from app where app_channel = %d $sql_extra order by app_name asc",
intval($uid)
);
if($r) {