aboutsummaryrefslogtreecommitdiffstats
path: root/mod/appman.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-29 00:28:23 -0800
committerfriendica <info@friendica.com>2015-01-29 00:28:23 -0800
commitfd0b6c967fce4d8a82e9dad121ae7d8301d3f342 (patch)
tree5c37812ef7baeadc17fce088c4394d25f75b593c /mod/appman.php
parentc993ddd86ee25832e35e65333fa25b396e7aefdf (diff)
parent872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff)
downloadvolse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.gz
volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.bz2
volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.zip
Merge branch 'master' into pocorate
Diffstat (limited to 'mod/appman.php')
-rw-r--r--mod/appman.php16
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];