} } elseif (preg_match('/framework$/i', $repodir)) { $translation->update_i18n_amp(); foreach (glob($repodir . '/amp_conf/htdocs/admin/i18n/*', GLOB_ONLYDIR) as $langDir) { $lang = basename($langDir); freepbx::outn("\t\tUpdating individual localization for " . $lang); $o = $translation->merge_i18n_amp($lang); freepbx::out($o); } freepbx::out("Done"); } else { freepbx::out("Core is done through framework"); } break; case !empty($m): FreePBX::refreshRepo($repodir); $repo = Git::open($repodir); $moduleMasterXmlString = $repo->show('origin/master', 'module.xml'); $masterXML = simplexml_load_string($moduleMasterXmlString); $activeb = $repo->active_branch(); $sver = (string) $masterXML->supported->version; $rbranches = $repo->list_remote_branches(); foreach ($rbranches as $branch) { if (!preg_match("/^origin\\/release\\/(.*)/", $branch, $bmatch)) { continue; } try { $xml = $repo->show('refs/remotes/' . $branch, 'module.xml'); } catch (Exception $e) { //no module xml here...nothing to see move along and try next branch freepbx::out("No Module.xml, skipping");