diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1957,7 +1957,6 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1957 | 1957 | ||
1958 | // Fill all template fields. | 1958 | // Fill all template fields. |
1959 | $data = array( | 1959 | $data = array( |
1960 | 'pagetitle' => $GLOBALS['pagetitle'], | ||
1961 | 'linkcount' => count($LINKSDB), | 1960 | 'linkcount' => count($LINKSDB), |
1962 | 'previous_page_url' => $previous_page_url, | 1961 | 'previous_page_url' => $previous_page_url, |
1963 | 'next_page_url' => $next_page_url, | 1962 | 'next_page_url' => $next_page_url, |
@@ -1971,6 +1970,10 @@ function buildLinkList($PAGE,$LINKSDB) | |||
1971 | 'links' => $linkDisp, | 1970 | 'links' => $linkDisp, |
1972 | 'tags' => $LINKSDB->allTags(), | 1971 | 'tags' => $LINKSDB->allTags(), |
1973 | ); | 1972 | ); |
1973 | // FIXME! temporary fix - see #399. | ||
1974 | if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) { | ||
1975 | $data['pagetitle'] = $GLOBALS['pagetitle']; | ||
1976 | } | ||
1974 | 1977 | ||
1975 | $pluginManager = PluginManager::getInstance(); | 1978 | $pluginManager = PluginManager::getInstance(); |
1976 | $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); | 1979 | $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn())); |