Skip to content
This repository
Browse code

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

…d to LinkPreview()
  • Loading branch information...
commit d8bb1b237588c51ff961988884aaf9c2b7615491 1 parent ed5110d
Ingo Schommer authored April 18, 2012
2  admin/code/LeftAndMain.php
@@ -1164,7 +1164,7 @@ public function isCurrentPage(DataObject $record) {
1164 1164
 	 * 
1165 1165
 	 * @return String|boolean
1166 1166
 	 */
1167  
-	public function PreviewLink() {
  1167
+	public function LinkPreview() {
1168 1168
 		return false;
1169 1169
 	}
1170 1170
 
4  admin/templates/Includes/LeftAndMain_EditForm.ss
@@ -54,8 +54,8 @@
54 54
 			<% control Actions %>
55 55
 				$Field
56 56
 			<% end_control %>
57  
-			<% if Controller.PreviewLink %>
58  
-			<a href="$Controller.PreviewLink" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
  57
+			<% if Controller.LinkPreview %>
  58
+			<a href="$Controller.LinkPreview" class="cms-preview-toggle-link ss-ui-button" data-icon="preview">
59 59
 				<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
60 60
 			</a>
61 61
 			<% end_if %>

0 notes on commit d8bb1b2

Please sign in to comment.
Something went wrong with that request. Please try again.