From b7e34bd54c3761e250996f8e7c5f91288f71ffa5 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Mon, 18 Feb 2013 16:38:15 +0000 Subject: [PATCH] Removing redundant function At the moment form actions (buttons) have the classes 'action action' as default. This is because the extraClass function adds 'action' and then calls the parent method. The parent then includes the $this->Type() ('action') again. So I've remove this overloading of extraClass --- forms/FormAction.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/forms/FormAction.php b/forms/FormAction.php index c9162f9ed..b07b6a8f8 100644 --- a/forms/FormAction.php +++ b/forms/FormAction.php @@ -121,10 +121,6 @@ class FormAction extends FormField { return $this->useButtonTag; } - public function extraClass() { - return 'action ' . parent::extraClass(); - } - /** * Does not transform to readonly by purpose. * Globally disabled buttons would break the CMS.