public function testSugarSpriteBuilder() { require_once 'modules/UpgradeWizard/uw_utils.php'; rebuildSprites(true); $this->assertTrue(file_exists('cache/sprites'), 'Assert that we have built the sprites directory'); $files = glob('cache/sprites/default/*.png'); $this->assertTrue(!empty($files), 'Assert that we have created .png sprite images'); }
{ logThis('Add global search for custom modules start .', $path); add_unified_search_to_custom_modules_vardefs(); logThis('Add global search for custom modules finished .', $path); } */ //Upgrade system displayed tabs and subpanels if (function_exists('upgradeDisplayedTabsAndSubpanels')) { upgradeDisplayedTabsAndSubpanels($_SESSION['current_db_version']); } //Unlink files that have been removed if (function_exists('unlinkUpgradeFiles')) { unlinkUpgradeFiles($_SESSION['current_db_version']); } if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) { rebuildSprites(true); } require_once 'modules/Administration/upgrade_custom_relationships.php'; upgrade_custom_relationships(); require_once 'modules/UpgradeWizard/uw_utils.php'; /* if($_SESSION['current_db_version'] < '620') { upgradeDateTimeFields($path); upgradeDocumentTypeFields($path); } */ //Update the license logThis('Start Updating the license ', $path); ob_start(); check_now(get_sugarbeat());
public function action_callRebuildSprites() { global $current_user; $this->view = 'ajax'; if (function_exists('imagecreatetruecolor')) { if (is_admin($current_user)) { require_once 'modules/UpgradeWizard/uw_utils.php'; rebuildSprites(false); } } else { echo $mod_strings['LBL_SPRITES_NOT_SUPPORTED']; $GLOBALS['log']->error($mod_strings['LBL_SPRITES_NOT_SUPPORTED']); } }