diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-12-07 10:29:24 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-12-07 10:29:24 +0100 |
commit | 18cca483b0b51f190bd875fc4273a0fff3fedebd (patch) | |
tree | c277f9aa0a33bbec119f8be1bd3967f07e4698ef /index.php | |
parent | 4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff) | |
download | Shaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.tar.gz Shaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.tar.zst Shaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.zip |
Temporary fix for head titles
only set the title on permalink.
Diffstat (limited to 'index.php')
-rwxr-xr-x[-rw-r--r--] | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1948,7 +1948,6 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1948 | 1948 | ||
1949 | // Fill all template fields. | 1949 | // Fill all template fields. |
1950 | $data = array( | 1950 | $data = array( |
1951 | 'pagetitle' => $GLOBALS['pagetitle'], | ||
1952 | 'linkcount' => count($LINKSDB), | 1951 | 'linkcount' => count($LINKSDB), |
1953 | 'previous_page_url' => $previous_page_url, | 1952 | 'previous_page_url' => $previous_page_url, |
1954 | 'next_page_url' => $next_page_url, | 1953 | 'next_page_url' => $next_page_url, |
@@ -1962,6 +1961,10 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1962 | 'links' => $linkDisp, | 1961 | 'links' => $linkDisp, |
1963 | 'tags' => $LINKSDB->allTags(), | 1962 | 'tags' => $LINKSDB->allTags(), |
1964 | ); | 1963 | ); |
1964 | // FIXME! temporary fix - see #399. | ||
1965 | if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) { | ||
1966 | $data['pagetitle'] = $GLOBALS['pagetitle']; | ||
1967 | } | ||
1965 | 1968 | ||
1966 | $pluginManager = PluginManager::getInstance(); | 1969 | $pluginManager = PluginManager::getInstance(); |
1967 | $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); | 1970 | $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); |