From: ArthurHoaro Date: Mon, 7 Dec 2015 09:29:24 +0000 (+0100) Subject: Temporary fix for head titles X-Git-Tag: v0.6.2~8^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=18cca483b0b51f190bd875fc4273a0fff3fedebd Temporary fix for head titles only set the title on permalink. --- diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 81ab7676..0dd5829b --- a/index.php +++ b/index.php @@ -1948,7 +1948,6 @@ function buildLinkList($PAGE,$LINKSDB) // Fill all template fields. $data = array( - 'pagetitle' => $GLOBALS['pagetitle'], 'linkcount' => count($LINKSDB), 'previous_page_url' => $previous_page_url, 'next_page_url' => $next_page_url, @@ -1962,6 +1961,10 @@ function buildLinkList($PAGE,$LINKSDB) 'links' => $linkDisp, 'tags' => $LINKSDB->allTags(), ); + // FIXME! temporary fix - see #399. + if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) { + $data['pagetitle'] = $GLOBALS['pagetitle']; + } $pluginManager = PluginManager::getInstance(); $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn()));