From: Deepak Srivastava Date: Tue, 16 Apr 2013 11:54:49 +0000 (+0530) Subject: Fix for CRM-12359 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=735050235b3034316bcc2c8f61e3a2f36f1e8f57;p=civicrm-core.git Fix for CRM-12359 --- diff --git a/CRM/Extension/Browser.php b/CRM/Extension/Browser.php index 8458b87e75..c8e37223c9 100644 --- a/CRM/Extension/Browser.php +++ b/CRM/Extension/Browser.php @@ -187,7 +187,7 @@ class CRM_Extension_Browser { $files = scandir($cachedPath); foreach ($files as $dc => $fname) { if (substr($fname, -4) == '.xml') { - $result[] = array('key' => trim($fname, '.xml')); + $result[] = array('key' => substr($fname, 0, -4)); } } return $result; @@ -231,7 +231,7 @@ class CRM_Extension_Browser { $extsRaw[] = $out; $key = strip_tags($out[1]); if (substr($key, -4) == '.xml') { - $exts[] = array('key' => trim($key, '.xml')); + $exts[] = array('key' => substr($key, 0, -4)); } } }