aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthur <arthur@hoa.ro>2015-12-07 10:54:45 +0100
committerArthur <arthur@hoa.ro>2015-12-07 10:54:45 +0100
commitb373ddc1df5ce525996b6b373c4bb39b87640f1d (patch)
treec277f9aa0a33bbec119f8be1bd3967f07e4698ef
parent4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff)
parent18cca483b0b51f190bd875fc4273a0fff3fedebd (diff)
downloadShaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.tar.gz
Shaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.tar.zst
Shaarli-b373ddc1df5ce525996b6b373c4bb39b87640f1d.zip
Merge pull request #405 from ArthurHoaro/titles-fix
Temporary fix for head titles
-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()));