/** * Generate the link for the refresh in JavaScript. * @param string $ext_name The name of the extension. * @return bool|string */ protected static function generate_refresh_link($ext_name) { if (files::check_acp_and_adm(objects::$phpbb_extension_manager->get_extension_path($ext_name, true))) { return str_replace('&', '&', objects::$u_action . '&action=details&ext_name=' . urlencode($ext_name)); } else { return false; } }