mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Consistent link method names: LeftAndMain->PreviewLink() changed to LinkPreview()
This commit is contained in:
parent
ed5110dbbf
commit
d8bb1b2375
@ -1164,7 +1164,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
|||||||
*
|
*
|
||||||
* @return String|boolean
|
* @return String|boolean
|
||||||
*/
|
*/
|
||||||
public function PreviewLink() {
|
public function LinkPreview() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@
|
|||||||
<% control Actions %>
|
<% control Actions %>
|
||||||
$Field
|
$Field
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
<% if Controller.PreviewLink %>
|
<% if Controller.LinkPreview %>
|
||||||
<a href="$Controller.PreviewLink" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
|
||||||
<% _t('LeftAndMain.PreviewButton', 'Preview') %> »
|
<% _t('LeftAndMain.PreviewButton', 'Preview') %> »
|
||||||
</a>
|
</a>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user