projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4979 from xurizaemon/codingstandards-12
[civicrm-core.git]
/
CRM
/
Admin
/
Form
/
Extensions.php
diff --git
a/CRM/Admin/Form/Extensions.php
b/CRM/Admin/Form/Extensions.php
index 31be15dfd0c43a634c361ae4467a1dca5a8c4d6b..d22e27e8bc6da6612fa1ba65a8977d0f304dd9b4 100644
(file)
--- a/
CRM/Admin/Form/Extensions.php
+++ b/
CRM/Admin/Form/Extensions.php
@@
-68,7
+68,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
break;
case CRM_Core_Action::UPDATE:
break;
case CRM_Core_Action::UPDATE:
- if (!
CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
+ if (!CRM_Extension_System::singleton()->getBrowser()->isEnabled()) {
CRM_Core_Error::fatal(ts('The system administrator has disabled this feature.'));
}
$info = CRM_Extension_System::singleton()->getBrowser()->getExtension($this->_key);
CRM_Core_Error::fatal(ts('The system administrator has disabled this feature.'));
}
$info = CRM_Extension_System::singleton()->getBrowser()->getExtension($this->_key);
@@
-108,12
+108,12
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
switch ($this->_action) {
case CRM_Core_Action::ADD:
$buttonName = ts('Install');
switch ($this->_action) {
case CRM_Core_Action::ADD:
$buttonName = ts('Install');
- $title = ts('Install ' . $extName
. '?');
+ $title = ts('Install ' . $extName . '?');
break;
case CRM_Core_Action::UPDATE:
$buttonName = ts('Download and Install');
break;
case CRM_Core_Action::UPDATE:
$buttonName = ts('Download and Install');
- $title = ts('Download and Install ' . $extName
. '?');
+ $title = ts('Download and Install ' . $extName . '?');
break;
case CRM_Core_Action::DELETE:
break;
case CRM_Core_Action::DELETE:
@@
-157,8
+157,8
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
* @param array $self
* This object.
*
* @param array $self
* This object.
*
- * @return
true if no errors, else an array of errors
- *
@static
+ * @return
bool|array
+ *
true if no errors, else an array of errors
*/
public static function formRule($fields, $files, $self) {
$errors = array();
*/
public static function formRule($fields, $files, $self) {
$errors = array();
@@
-206,7
+206,7
@@
class CRM_Admin_Form_Extensions extends CRM_Admin_Form {
'version' => 3,
'key' => $this->_key,
));
'version' => 3,
'key' => $this->_key,
));
- if (!
CRM_Utils_Array::value('is_error', $result, FALSE)) {
+ if (!CRM_Utils_Array::value('is_error', $result, FALSE)) {
CRM_Core_Session::setStatus("", ts('Extension Upgraded'), "success");
}
else {
CRM_Core_Session::setStatus("", ts('Extension Upgraded'), "success");
}
else {