Установку проверил, ошибок нет.
Имеем такое:
Код: Выделить всё
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1609: Undefined index: mobile_style
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4402: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3528)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4404: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3528)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4405: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3528)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4406: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3528)
Кусок кода из sessions.php
Код: Выделить всё
if (strpos($user_browser, $useragent_match) !== false)
{
$is_mobile = true;
break;
}
}
$mobile_cookie = request_var($config['cookie_name'] . '_mobile', 'not_set', false, true);
if (!$this->data['is_bot'] && ($mobile_cookie == 'on' || ($is_mobile && $mobile_cookie == 'not_set')))
{
$style = $config['mobile_style'];
}
if (!empty($_GET['style']) && $auth->acl_get('a_styles') && !defined('ADMIN_START'))
{
global $SID, $_EXTRA_URL;
$style = request_var('style', 0);
$SID .= '&style=' . $style;
$_EXTRA_URL = array('style=' . $style);
}
Добавлено спустя 4 минуты 42 секунды:
Ссылки с использованием mobile_style=off или on вызывают описанную выше ошибку, но
обнаружил такую штуку, ссылки вида index.php?style=1 работают если в sessions.php
сделать правку.
Найти: if (!empty($_GET['style']) && $auth->acl_get('a_styles') && !defined('ADMIN_START'))
Заменить на: if (!empty($_GET['style']))
Т.е. ссылки вида index.php?style=2 и index.php?style=1 переключают со стиля на стиль.
Проверил, всё работает, но что-то мне подсказывает, что решение неверное, правил методом тыка (по информации со startrek)