Changeset 11725
- Timestamp:
- 03/08/11 18:59:47 (2 years ago)
- Files:
-
- freepbx/branches/2.9/amp_conf/bin/module_admin (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/bin/module_admin
r11633 r11725 226 226 global $active_repos; 227 227 228 check_active_repos(); 229 228 230 foreach ($modules_online as $name) { 229 231 … … 251 253 global $active_repos; 252 254 255 check_active_repos(); 256 253 257 foreach (array_keys($modules_local) as $name) { 254 258 if (isset($modules_online[$name])) { … … 347 351 } 348 352 } 353 354 function check_active_repos() { 355 global $no_warnings; 356 global $active_repos; 357 358 if (!isset($active_repos)) { 359 $active_repos = module_get_active_repos(); 360 $list = implode(',',array_keys($active_repos)); 361 if (!$no_warnings) { 362 out("no repos specified, using: [$list] from last GUI settings"); 363 out(""); 364 } 365 } 366 } 367 349 368 350 369 function showHelp() { … … 448 467 global $active_repos; 449 468 469 check_active_repos(); 470 450 471 if ($online) { 451 472 $modules_online = module_getonlinexml(false, $repo); … … 614 635 } 615 636 616 if (!isset($active_repos)) {617 $active_repos = module_get_active_repos();618 $list = implode(',',array_keys($active_repos));619 out("no repos specified, using: [$list] from last GUI settings");620 out("");621 }622 623 637 $operation = $args[1][0]; 624 638 $param = isset($args[1][1]) ? $args[1][1] : null;;
