mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API Add a missing alternatePreviewLink hook for SiteTree extensions.
This commit is contained in:
parent
2567cda0b4
commit
bccd2f8e51
@ -446,7 +446,11 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
* @return string
|
||||
*/
|
||||
public function PreviewLink($action = null) {
|
||||
return $this->AbsoluteLink($action);
|
||||
if($this->hasMethod('alternatePreviewLink')) {
|
||||
return $this->alternatePreviewLink($action);
|
||||
} else {
|
||||
return $this->AbsoluteLink($action);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user