MINOR Fixed preview link ($CurrentPage stopped working at some point..) (fixes #6940)

This commit is contained in:
Ingo Schommer 2012-03-09 21:48:28 +01:00
parent 3a068a0d18
commit 549ebec53b

View File

@ -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') %> &raquo;
</a>
<% end_if %>