]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #839 from ArthurHoaro/theme/daily-page-title
authorArthurHoaro <arthur@hoa.ro>
Wed, 29 Mar 2017 16:38:52 +0000 (18:38 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Mar 2017 16:38:52 +0000 (18:38 +0200)
Display daily date in the page title (browser title)

index.php

index 4a1f00ccb52378a4cc1d059c65c2ee69bca26091..ca9988854f70c06e4e4dba531857bf6270da917b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -695,6 +695,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager)
 
     $dayDate = DateTime::createFromFormat(LinkDB::LINK_DATE_FORMAT, $day.'_000000');
     $data = array(
+        'pagetitle' => $conf->get('general.title') .' - '. format_date($dayDate, false),
         'linksToDisplay' => $linksToDisplay,
         'cols' => $columns,
         'day' => $dayDate->getTimestamp(),