/** * This method is meant to be used to display the license agreement inline on the page * if the system would like to perform the installation on the same page via an Ajax call */ function buildLicenseOutput($file) { global $current_language; $mod_strings = return_module_language($current_language, "Administration"); $contents = ''; $pm = new PackageManager(); $contents = $pm->getLicenseFromFile($file); $ss = new Sugar_Smarty(); $ss->assign('MOD', $mod_strings); $ss->assign('LICENSE_CONTENTS', $contents); $ss->assign('FILE', $file); $str = $ss->fetch('ModuleInstall/PackageManagerLicense.tpl'); $GLOBALS['log']->debug('LICENSE OUTPUT: ' . $str); return $str; }