allow a site to over-ride the system app list without causing git issues

This commit is contained in:
friendica 2014-10-09 15:22:21 -07:00
parent 6b48672343
commit 1adb7a2eef

View File

@ -11,7 +11,10 @@ require_once('include/identity.php');
function get_system_apps() {
$ret = array();
$files = glob('app/*.apd');
if(is_dir('apps'))
$files = glob('apps/*.apd');
else
$files = glob('app/*.apd');
if($files) {
foreach($files as $f) {
$x = parse_app_description($f);