]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Fixes #399 - show single link title as page title
[github/shaarli/Shaarli.git] / index.php
index d26c0c1e3c9b75c69d6b804c54bb3a04f19290ef..81ab7676fec90ee0b05ef1614dc2c41811c0d385 100644 (file)
--- a/index.php
+++ b/index.php
@@ -643,9 +643,11 @@ class pageBuilder
                 $GLOBALS['config']['UPDATECHECK_BRANCH']
             );
             $this->tpl->assign('newVersion', escape($version));
+            $this->tpl->assign('versionError', '');
 
         } catch (Exception $exc) {
             logm($exc->getMessage());
+            $this->tpl->assign('newVersion', '');
             $this->tpl->assign('versionError', escape($exc->getMessage()));
         }
 
@@ -1946,6 +1948,7 @@ 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,