Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Consistent link method names: LeftAndMain->PreviewLink() change…

…d to LinkPreview()
  • Loading branch information...
commit d8bb1b237588c51ff961988884aaf9c2b7615491 1 parent ed5110d
@chillu chillu authored
View
2  admin/code/LeftAndMain.php
@@ -1164,7 +1164,7 @@ public function isCurrentPage(DataObject $record) {
*
* @return String|boolean
*/
- public function PreviewLink() {
+ public function LinkPreview() {
return false;
}
View
4 admin/templates/Includes/LeftAndMain_EditForm.ss
@@ -54,8 +54,8 @@
<% control Actions %>
$Field
<% end_control %>
- <% if Controller.PreviewLink %>
- <a href="$Controller.PreviewLink" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
+ <% if Controller.LinkPreview %>
+ <a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
<% end_if %>
Please sign in to comment.
Something went wrong with that request. Please try again.