aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 81ab7676..0dd5829b 100644..100755
--- a/index.php
+++ b/index.php
@@ -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()));