Display daily date in the page title (browser title)

Fixes #211
Depends on #838
This commit is contained in:
ArthurHoaro 2017-03-28 20:51:11 +02:00
parent b64d83cd2b
commit 935222b8b2

View file

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