Skip to content
Snippets Groups Projects
Commit 73505023 authored by Deepak Srivastava's avatar Deepak Srivastava
Browse files

Fix for CRM-12359

parent 66202fd9
Branches
Tags
No related merge requests found
......@@ -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));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment