]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
PLUGIN Markdown
[github/shaarli/Shaarli.git] / index.php
index 1850e40c0633298124bebc0581a1cc342495c4c6..d0876d957721bba0225bc4a7e72cb885698f6662 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1957,7 +1957,6 @@ function buildLinkList($PAGE,$LINKSDB)
 
     // Fill all template fields.
     $data = array(
-        'pagetitle' => $GLOBALS['pagetitle'],
         'linkcount' => count($LINKSDB),
         'previous_page_url' => $previous_page_url,
         'next_page_url' => $next_page_url,
@@ -1971,6 +1970,10 @@ function buildLinkList($PAGE,$LINKSDB)
         'links' => $linkDisp,
         'tags' => $LINKSDB->allTags(),
     );
+    // FIXME! temporary fix - see #399.
+    if (!empty($GLOBALS['pagetitle']) && count($linkDisp) == 1) {
+        $data['pagetitle'] = $GLOBALS['pagetitle'];
+    }
 
     $pluginManager = PluginManager::getInstance();
     $pluginManager->executeHooks('render_linklist', $data, array('loggedin' => isLoggedIn()));