X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPCP%2FForm%2FPCPAccount.php;h=9c4447f06c297c17114b7acfc1b169e49e30cee5;hb=87878ac8e6101fc5bed04f356c677b5f9ec54bc7;hp=091c5babbc5200fb7d5ca1ef875cf54bb3c0d9f2;hpb=6f2500ee7589360102875df4367568fe87485df6;p=civicrm-core.git diff --git a/CRM/PCP/Form/PCPAccount.php b/CRM/PCP/Form/PCPAccount.php index 091c5babbc..9c4447f06c 100644 --- a/CRM/PCP/Form/PCPAccount.php +++ b/CRM/PCP/Form/PCPAccount.php @@ -41,7 +41,6 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { /** * Variable defined for Contribution Page Id - * */ public $_pageId = NULL; @@ -64,12 +63,12 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { public function preProcess() { - $session = CRM_Core_Session::singleton(); - $config = CRM_Core_Config::singleton(); - $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE); - $this->_pageId = CRM_Utils_Request::retrieve('pageId', 'Positive', $this); + $session = CRM_Core_Session::singleton(); + $config = CRM_Core_Config::singleton(); + $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE); + $this->_pageId = CRM_Utils_Request::retrieve('pageId', 'Positive', $this); $this->_component = CRM_Utils_Request::retrieve('component', 'String', $this); - $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); + $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); if (!$this->_pageId && $config->userFramework == 'Joomla' && $config->userFrameworkFrontend) { $this->_pageId = $this->_id; @@ -196,7 +195,7 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { if ($this->_single) { $button = array( array( - 'type' => 'next', + 'type' => 'next', 'name' => ts('Save'), 'spacing' => '         ', 'isDefault' => TRUE, @@ -229,8 +228,8 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form { * @param $self * * - * @return true if no errors, else array of errors - * @static + * @return bool|array + * true if no errors, else array of errors */ public static function formRule($fields, $files, $self) { $errors = array();