Merge branch '3'

This commit is contained in:
Daniel Hensby 2016-07-14 12:25:54 +01:00
commit 7e5f0087b8
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -506,7 +506,9 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
));
if($live) {
$link = $live->AbsoluteLink();
if($includeStageEqualsLive) $link .= '?stage=Live';
if($includeStageEqualsLive) {
$link = Controller::join_links($link, '?stage=Live');
}
} else {
$link = null;
}