From 735050235b3034316bcc2c8f61e3a2f36f1e8f57 Mon Sep 17 00:00:00 2001 From: Deepak Srivastava Date: Tue, 16 Apr 2013 17:24:49 +0530 Subject: [PATCH] Fix for CRM-12359 --- CRM/Extension/Browser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } } -- 2.25.1