Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…d to LinkPreview()
  • Loading branch information...
commit 4fd757341aa7bb2d44b9f0b76ba19a132f7d61bd 1 parent e5000dd
@chillu chillu authored
View
2  code/controllers/CMSMain.php
@@ -200,7 +200,7 @@ function LinkPageAdd() {
/**
* @return string
*/
- public function PreviewLink() {
+ public function LinkPreview() {
$record = $this->getRecord($this->currentPageID());
$baseLink = ($record && $record instanceof Page) ? $record->Link('?stage=Stage') : Director::absoluteBaseURL();
return $baseLink;
View
2  code/controllers/CMSPagesController.php
@@ -11,7 +11,7 @@ class CMSPagesController extends CMSMain {
static $menu_title = 'Pages';
static $required_permission_codes = 'CMS_ACCESS_CMSMain';
- function PreviewLink() {
+ function LinkPreview() {
return false;
}
View
2  code/controllers/CMSSettingsController.php
@@ -50,7 +50,7 @@ function save_siteconfig($data, $form) {
return $form->forTemplate();
}
- function PreviewLink() {
+ function LinkPreview() {
return false;
}
View
4 templates/Includes/AssetAdmin_EditForm.ss
@@ -19,8 +19,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 CurrentPage.LinkPreview %>
+ <a href="$CurrentPage.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
<% end_if %>
View
4 templates/Includes/CMSMain_EditForm.ss
@@ -22,8 +22,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.