mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:00:17 +00:00
profile_uid bug in boot.php
This commit is contained in:
parent
fdd142c42e
commit
0ba1bdbb08
1 changed files with 3 additions and 3 deletions
6
boot.php
6
boot.php
|
@ -1170,7 +1170,7 @@ if(! function_exists('profile_load')) {
|
||||||
|
|
||||||
if(! $r[0]['is-default']) {
|
if(! $r[0]['is-default']) {
|
||||||
$x = q("select `pub_keywords` from `profile` where uid = %d and `is-default` = 1 limit 1",
|
$x = q("select `pub_keywords` from `profile` where uid = %d and `is-default` = 1 limit 1",
|
||||||
intval($profile_uid)
|
intval($r[0]['profile_uid'])
|
||||||
);
|
);
|
||||||
if($x && count($x))
|
if($x && count($x))
|
||||||
$r[0]['pub_keywords'] = $x[0]['pub_keywords'];
|
$r[0]['pub_keywords'] = $x[0]['pub_keywords'];
|
||||||
|
@ -1178,7 +1178,7 @@ if(! function_exists('profile_load')) {
|
||||||
|
|
||||||
$a->profile = $r[0];
|
$a->profile = $r[0];
|
||||||
|
|
||||||
$a->profile['mobile-theme'] = get_pconfig($profile_uid, 'system', 'mobile_theme');
|
$a->profile['mobile-theme'] = get_pconfig($a->profile['profile_uid'], 'system', 'mobile_theme');
|
||||||
|
|
||||||
|
|
||||||
$a->page['title'] = $a->profile['name'] . " @ " . $a->config['sitename'];
|
$a->page['title'] = $a->profile['name'] . " @ " . $a->config['sitename'];
|
||||||
|
@ -1617,7 +1617,7 @@ if(! function_exists('current_theme')) {
|
||||||
// $mobile_detect = new Mobile_Detect();
|
// $mobile_detect = new Mobile_Detect();
|
||||||
// $is_mobile = $mobile_detect->isMobile() || $mobile_detect->isTablet();
|
// $is_mobile = $mobile_detect->isMobile() || $mobile_detect->isTablet();
|
||||||
$is_mobile = $a->is_mobile || $a->is_tablet;
|
$is_mobile = $a->is_mobile || $a->is_tablet;
|
||||||
|
|
||||||
if($is_mobile) {
|
if($is_mobile) {
|
||||||
if(isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) {
|
if(isset($_SESSION['show-mobile']) && !$_SESSION['show-mobile']) {
|
||||||
$system_theme = '';
|
$system_theme = '';
|
||||||
|
|
Loading…
Reference in a new issue