/** * Check for module updates... */ public function checkForModuleUpdate() { include_once "core/lib/ModuleUpdateCheck.php"; $muc = new ModuleUpdateCheck(); //Check Modules, but discard results. $muc->getVersionArray($this->listFiles("modules"), true); }
/** * Checks an individual update exists */ public function checkModForUpdates($mod) { include_once "core/lib/ModuleUpdateCheck.php"; $muc = new ModuleUpdateCheck(); //Get array of version information $vA = $muc->getVersionArray($this->listFiles("modules")); if (!empty($vA[$mod])) { return $vA[$mod]; } else { return false; } }