aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-06 10:49:42 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-06 10:49:42 +0100
commitcf4cdffcc1812f0a09a7990741c0e0351bc4b836 (patch)
tree1689d21daac5a14645e4bb5aa7b7b6fcb2275039
parente70c87ed413bb1f649d0ee96404f97e3aa3f48b9 (diff)
downloadvolse-hubzilla-cf4cdffcc1812f0a09a7990741c0e0351bc4b836.tar.gz
volse-hubzilla-cf4cdffcc1812f0a09a7990741c0e0351bc4b836.tar.bz2
volse-hubzilla-cf4cdffcc1812f0a09a7990741c0e0351bc4b836.zip
parse icons in get_system_apps()
-rw-r--r--Zotlabs/Lib/Apps.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index c8345e351..455287fb8 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -26,6 +26,7 @@ class Apps {
foreach($files as $f) {
$x = self::parse_app_description($f,$translate);
if($x) {
+ $x['icon'] = ((strpos($x['photo'],'icon:') === 0) ? substr($x['photo'],5) : '');
$ret[] = $x;
}
}
@@ -39,6 +40,7 @@ class Apps {
$x = self::parse_app_description($f,$translate);
if($x) {
$x['plugin'] = $plugin;
+ $x['icon'] = ((strpos($x['photo'],'icon:') === 0) ? substr($x['photo'],5) : '');
$ret[] = $x;
}
}
@@ -501,6 +503,7 @@ class Apps {
$r = q("select * from app where app_channel = %d $sql_extra order by app_name asc",
intval($uid)
);
+
if($r) {
for($x = 0; $x < count($r); $x ++) {
if(! $r[$x]['app_system'])