mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed preview link ($CurrentPage stopped working at some point..) (fixes #6940)
This commit is contained in:
parent
3a068a0d18
commit
549ebec53b
@ -58,8 +58,8 @@
|
||||
<% control Actions %>
|
||||
$Field
|
||||
<% end_control %>
|
||||
<% if CurrentPage.PreviewLink %>
|
||||
<a href="$CurrentPage.PreviewLink" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||
<% if Controller.PreviewLink %>
|
||||
<a href="$Controller.PreviewLink" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||
<% _t('LeftAndMain.PreviewButton', 'Preview') %> »
|
||||
</a>
|
||||
<% end_if %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user