getVersions() as $version) { try { $pages = DocumentationService::get_pages_from_folder($module, false, true, $version); if($pages) { foreach($pages as $page) { $output->push($page); } } } catch(Exception $e) { user_error($e, E_USER_WARNING); } } } } return $output; } }