Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapjansma committed Feb 15, 2023
1 parent cf2e7ed commit 48ce0c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sepaterminatemandates.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ function sepaterminatemandates_civicrm_navigationMenu(&$menu): void {
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
*/
function sepaterminatemandates_civix_civicrm_xmlMenu(&$files) {
foreach (_sepa_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) {
$files[] = $file;
function sepaterminatemandates_civicrm_xmlMenu(&$files) {
$xmlFiles = glob(__DIR__ . '/xml/Menu/*.xml');
if (is_array($xmlFiles)) {
foreach ($xmlFiles as $file) {
$files[] = $file;
}
}
}

0 comments on commit 48ce0c1

Please sign in to comment.