aboutsummaryrefslogtreecommitdiffstats
path: root/mod/appman.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-29 15:09:35 -0800
committerfriendica <info@friendica.com>2015-01-29 15:09:35 -0800
commit912be23e1627211fb417c4b7bced414cbbe38ef0 (patch)
tree2b8567d800624167b3eadf37c8855deb0ba74b0b /mod/appman.php
parentff68ea608786a698ad46637ef13854ac1b1e6beb (diff)
parent872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff)
downloadvolse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.gz
volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.tar.bz2
volse-hubzilla-912be23e1627211fb417c4b7bced414cbbe38ef0.zip
Merge branch 'master' into tres
Conflicts: include/group.php include/text.php mod/acl.php mod/channel.php mod/connections.php mod/display.php mod/group.php mod/item.php mod/locs.php mod/network.php mod/photos.php mod/ping.php mod/starred.php mod/viewsrc.php
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];