aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-12-07 10:29:24 +0100
committerArthurHoaro <arthur@hoa.ro>2015-12-07 10:29:24 +0100
commit18cca483b0b51f190bd875fc4273a0fff3fedebd (patch)
treec277f9aa0a33bbec119f8be1bd3967f07e4698ef
parent4c3df9aa1250df86a4897169a8d4be0d33b2c9f6 (diff)
downloadShaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.tar.gz
Shaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.tar.zst
Shaarli-18cca483b0b51f190bd875fc4273a0fff3fedebd.zip
Temporary fix for head titles
only set the title on permalink.
-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()));