X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FExtensions.php;h=e41486d0ded9e1d65d298742df26c3ed1de5cdba;hb=d0bb8a2fb7c8f4e65f5d3974d00a126db24f1376;hp=519414d3323f1c2fc4bf3f472f6a6c1339197598;hpb=c51d1602bae3a268cf2152e053914d2e78fbfa53;p=civicrm-core.git diff --git a/CRM/Admin/Page/Extensions.php b/CRM/Admin/Page/Extensions.php index 519414d332..e41486d0de 100644 --- a/CRM/Admin/Page/Extensions.php +++ b/CRM/Admin/Page/Extensions.php @@ -1,9 +1,9 @@ ts('Disable'), 'url' => 'civicrm/admin/extensions', 'qs' => 'action=disable&id=%%id%%&key=%%key%%', - 'ref' => 'disable-action', 'title' => ts('Disable'), ), CRM_Core_Action::DELETE => array( @@ -229,6 +228,11 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic { 'Extension', $row['id'] ); + if (isset($localExtensionRows[$info->key])) { + if (version_compare($localExtensionRows[$info->key]['version'], $info->version, '<')) { + $row['is_upgradeable'] = TRUE; + } + } $remoteExtensionRows[$row['id']] = $row; } $this->assign('remoteExtensionRows', $remoteExtensionRows); @@ -255,6 +259,8 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic { /** * Get user context. * + * @param null $mode + * * @return string user context. */ function userContext($mode = NULL) { @@ -279,6 +285,8 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic { * * The result format resembles the old CRM_Core_Extensions_Extension. * + * @param CRM_Extension_Info $obj + * * @return array */ public static function createExtendedInfo(CRM_Extension_Info $obj) {