From 104e29c9fa132dc927c5223947b44b50cdf580fb Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Mon, 29 Oct 2007 00:55:52 +0000 Subject: [PATCH] #1482 - Email link doesn't work git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43916 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 55838219..df2ad0b9 100644 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -770,7 +770,7 @@ HTML; ); // encode the message to appear in the body of the email - $archiveURL = Director::absoluteBaseURL() . $record->URLSegment . '?archiveDate=' . $record->obj('LastEdited')->URLDate(); + $archiveURL = Director::absoluteBaseURL() . $record->URLSegment . '?archiveDate=' . $record->obj('LastEdited')->URLDatetime(); $archiveEmailMessage = urlencode( $this->customise( array( 'ArchiveDate' => $record->obj('LastEdited'), 'ArchiveURL' => $archiveURL ) )->renderWith( 'ViewArchivedEmail' ) ); $archiveEmailMessage = preg_replace( '/\+/', '%20', $archiveEmailMessage );