diff options
author | Arthur <arthur@hoa.ro> | 2015-12-07 10:54:45 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2015-12-07 10:54:45 +0100 |
commit | b373ddc1df5ce525996b6b373c4bb39b87640f1d (patch) | |
tree | c277f9aa0a33bbec119f8be1bd3967f07e4698ef /index.php | |
parent | 4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff) | |
parent | 18cca483b0b51f190bd875fc4273a0fff3fedebd (diff) | |
download | Shaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.tar.gz Shaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.tar.zst Shaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.zip |
Merge pull request #405 from ArthurHoaro/titles-fix
Temporary fix for head titles
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())); |