parse icons in get_system_apps()
This commit is contained in:
parent
e70c87ed41
commit
cf4cdffcc1
@ -26,6 +26,7 @@ class Apps {
|
|||||||
foreach($files as $f) {
|
foreach($files as $f) {
|
||||||
$x = self::parse_app_description($f,$translate);
|
$x = self::parse_app_description($f,$translate);
|
||||||
if($x) {
|
if($x) {
|
||||||
|
$x['icon'] = ((strpos($x['photo'],'icon:') === 0) ? substr($x['photo'],5) : '');
|
||||||
$ret[] = $x;
|
$ret[] = $x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -39,6 +40,7 @@ class Apps {
|
|||||||
$x = self::parse_app_description($f,$translate);
|
$x = self::parse_app_description($f,$translate);
|
||||||
if($x) {
|
if($x) {
|
||||||
$x['plugin'] = $plugin;
|
$x['plugin'] = $plugin;
|
||||||
|
$x['icon'] = ((strpos($x['photo'],'icon:') === 0) ? substr($x['photo'],5) : '');
|
||||||
$ret[] = $x;
|
$ret[] = $x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -501,6 +503,7 @@ class Apps {
|
|||||||
$r = q("select * from app where app_channel = %d $sql_extra order by app_name asc",
|
$r = q("select * from app where app_channel = %d $sql_extra order by app_name asc",
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
|
|
||||||
if($r) {
|
if($r) {
|
||||||
for($x = 0; $x < count($r); $x ++) {
|
for($x = 0; $x < count($r); $x ++) {
|
||||||
if(! $r[$x]['app_system'])
|
if(! $r[$x]['app_system'])
|
||||||
|
Reference in New Issue
Block a user