diff options
author | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
commit | a4960360669daa0a0c842427185ce1ada3b4ab97 (patch) | |
tree | 53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/appman.php | |
parent | 54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff) | |
download | volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2 volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip |
local_user => local_channel
Diffstat (limited to 'mod/appman.php')
-rw-r--r-- | mod/appman.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mod/appman.php b/mod/appman.php index f0a3c8a70..db22df883 100644 --- a/mod/appman.php +++ b/mod/appman.php @@ -4,7 +4,7 @@ require_once('include/apps.php'); function appman_post(&$a) { - if(! local_user()) + if(! local_channel()) return; if($_POST['url']) { @@ -22,9 +22,9 @@ function appman_post(&$a) { 'sig' => escape_tags($_REQUEST['sig']) ); - $_REQUEST['appid'] = app_install(local_user(),$arr); + $_REQUEST['appid'] = app_install(local_channel(),$arr); - if(app_installed(local_user(),$arr)) + if(app_installed(local_channel(),$arr)) info( t('App installed.') . EOL); return; @@ -39,13 +39,13 @@ function appman_post(&$a) { } if($_POST['install']) { - app_install(local_user(),$papp); - if(app_installed(local_user(),$papp)) + app_install(local_channel(),$papp); + if(app_installed(local_channel(),$papp)) info( t('App installed.') . EOL); } if($_POST['delete']) { - app_destroy(local_user(),$papp); + app_destroy(local_channel(),$papp); } if($_POST['edit']) { @@ -62,7 +62,7 @@ function appman_post(&$a) { function appman_content(&$a) { - if(! local_user()) { + if(! local_channel()) { notice( t('Permission denied.') . EOL); return; } @@ -73,7 +73,7 @@ function appman_content(&$a) { if($_REQUEST['appid']) { $r = q("select * from app where app_id = '%s' and app_channel = %d limit 1", dbesc($_REQUEST['appid']), - dbesc(local_user()) + dbesc(local_channel()) ); if($r) $app = $r[0]; |