aboutsummaryrefslogtreecommitdiffstats
path: root/boot.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 /boot.php
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/boot.php b/boot.php
index 969a4f578..f35e6586b 100755
--- a/boot.php
+++ b/boot.php
@@ -1004,11 +1004,11 @@ class App {
function build_pagehead() {
- $user_scalable = ((local_user()) ? get_pconfig(local_user(),'system','user_scalable') : 1);
+ $user_scalable = ((local_channel()) ? get_pconfig(local_channel(),'system','user_scalable') : 1);
if ($user_scalable === false)
$user_scalable = 1;
- $interval = ((local_user()) ? get_pconfig(local_user(),'system','update_interval') : 80000);
+ $interval = ((local_channel()) ? get_pconfig(local_channel(),'system','update_interval') : 80000);
if($interval < 10000)
$interval = 80000;
@@ -1023,7 +1023,7 @@ class App {
$this->page['htmlhead'] = replace_macros($tpl, array(
'$user_scalable' => $user_scalable,
'$baseurl' => $this->get_baseurl(),
- '$local_user' => local_user(),
+ '$local_channel' => local_channel(),
'$generator' => RED_PLATFORM . ' ' . RED_VERSION,
'$update_interval' => $interval,
'$icon' => head_get_icon(),
@@ -1529,7 +1529,7 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) {
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;
- if(local_user()) {
+ if(local_channel()) {
$tpl = get_markup_template("logout.tpl");
}
else {
@@ -1603,7 +1603,7 @@ function get_account_id() {
*
* @return int|bool channel_id or false
*/
-function local_user() {
+function local_channel() {
if((x($_SESSION, 'authenticated')) && (x($_SESSION, 'uid')))
return intval($_SESSION['uid']);
@@ -1744,7 +1744,7 @@ function current_theme(){
// Find the theme that belongs to the channel whose stuff we are looking at
- if($a->profile_uid && $a->profile_uid != local_user()) {
+ if($a->profile_uid && $a->profile_uid != local_channel()) {
$r = q("select channel_theme from channel where channel_id = %d limit 1",
intval($a->profile_uid)
);
@@ -1759,8 +1759,8 @@ function current_theme(){
// The default is for channel themes to take precedence over your own on pages belonging
// to that channel.
- if($page_theme && local_user() && local_user() != $a->profile_url) {
- if(get_pconfig(local_user(),'system','always_my_theme'))
+ if($page_theme && local_channel() && local_channel() != $a->profile_url) {
+ if(get_pconfig(local_channel(),'system','always_my_theme'))
$page_theme = null;
}