aboutsummaryrefslogtreecommitdiffstats
path: root/mod/channel.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
committerfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
commita4960360669daa0a0c842427185ce1ada3b4ab97 (patch)
tree53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/channel.php
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
Diffstat (limited to 'mod/channel.php')
-rw-r--r--mod/channel.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/channel.php b/mod/channel.php
index c8ac83baf..493730e8a 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -15,7 +15,7 @@ function channel_init(&$a) {
if(argc() > 1)
$which = argv(1);
if(! $which) {
- if(local_user()) {
+ if(local_channel()) {
$channel = $a->get_channel();
if($channel && $channel['channel_address'])
$which = $channel['channel_address'];
@@ -29,7 +29,7 @@ function channel_init(&$a) {
$profile = 0;
$channel = $a->get_channel();
- if((local_user()) && (argc() > 2) && (argv(2) === 'view')) {
+ if((local_channel()) && (argc() > 2) && (argv(2) === 'view')) {
$which = $channel['channel_address'];
$profile = argv(1);
}
@@ -68,12 +68,12 @@ function channel_content(&$a, $update = 0, $load = false) {
$a->profile['profile_uid'] = $a->profile_uid = $update;
}
else {
- if($a->profile['profile_uid'] == local_user()) {
+ if($a->profile['profile_uid'] == local_channel()) {
nav_set_selected('home');
}
}
- $is_owner = (((local_user()) && ($a->profile['profile_uid'] == local_user())) ? true : false);
+ $is_owner = (((local_channel()) && ($a->profile['profile_uid'] == local_channel())) ? true : false);
$channel = $a->get_channel();
$observer = $a->get_observer();
@@ -185,7 +185,7 @@ function channel_content(&$a, $update = 0, $load = false) {
$sql_extra2 .= protect_sprintf(sprintf(" AND item.created >= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery2))));
}
- $itemspage = get_pconfig(local_user(),'system','itemspage');
+ $itemspage = get_pconfig(local_channel(),'system','itemspage');
$a->set_pager_itemspage(((intval($itemspage)) ? $itemspage : 20));
$pager_sql = sprintf(" LIMIT %d OFFSET %d ", intval($a->pager['itemspage']), intval($a->pager['start']));
@@ -322,7 +322,7 @@ function channel_content(&$a, $update = 0, $load = false) {
intval(ITEM_UNSEEN),
intval(ITEM_UNSEEN),
intval(ITEM_WALL),
- intval(local_user())
+ intval(local_channel())
);
}