BUGFIX $date is not set on SilverStripeNavigatorItem_ArchiveLink

This bug was introduced from a bad merge
This commit is contained in:
Stig Lindqvist 2011-10-31 12:15:07 +13:00
parent b961f99842
commit 735e646626

View File

@ -298,10 +298,12 @@ class SilverStripeNavigatorItem_ArchiveLink extends SilverStripeNavigatorItem {
}
function getMessage() {
if($date = Versioned::current_archived_date()) {
$dateObj = Object::create('Datetime');
$dateObj->setValue($date);
return "<div id=\"SilverStripeNavigatorMessage\" title=\"". _t('ContentControl.NOTEWONTBESHOWN', 'Note: this message will not be shown to your visitors') ."\">". _t('ContentController.ARCHIVEDSITEFROM', 'Archived site from') ."<br>" . $dateObj->Nice() . "</div>";
}
}
function getLink() {
return $this->record->AbsoluteLink() . '?archiveDate=' . $date;