Permalink
Browse files

MINOR Fixed preview link ($CurrentPage stopped working at some point.…

….) (fixes #6940)
  • Loading branch information...
1 parent 3a068a0 commit 549ebec53bd178a43973761f2418e44ef724da5c @chillu chillu committed Mar 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/templates/Includes/LeftAndMain_EditForm.ss
@@ -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 %>

0 comments on commit 549ebec

Please sign in to comment.