Skip to content

Commit

Permalink
In order to load the correct mobile.png from the root of the forum, $…
Browse files Browse the repository at this point in the history
…boardurl is needed, not $scripturl
  • Loading branch information
emanuele45 committed Oct 29, 2018
1 parent fcccc5d commit 6760539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions themes/default/Theme.php
Expand Up @@ -690,7 +690,7 @@ public function relativeTimes()
*/
public function setupThemeContext($forceload = false)
{
global $modSettings, $user_info, $scripturl, $context, $settings, $options, $txt;
global $modSettings, $user_info, $scripturl, $context, $settings, $options, $txt, $boardurl;

static $loaded = false;

Expand Down Expand Up @@ -844,7 +844,7 @@ public function setupThemeContext($forceload = false)
// Set some specific vars.
$context['page_title_html_safe'] = \Util::htmlspecialchars(un_htmlspecialchars($context['page_title'])) . (!empty($context['current_page']) ? ' - ' . $txt['page'] . ' ' . ($context['current_page'] + 1) : '');

$context['favicon'] = $scripturl . '/mobile.png';
$context['favicon'] = $boardurl . '/mobile.png';

$this->loadSupportCSS();

Expand Down

0 comments on commit 6760539

Please sign in to comment.