Server IP : 184.154.167.98 / Your IP : 3.146.107.152 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/mesa/include/upgrader/streams/core/ |
Upload File : |
<?php class StatusListCreater extends MigrationTask { var $description = "Add ticket statuses (if not already)"; function run($max_time) { global $cfg; // Moved here from core/8f99b8bf-03ff59bf.task.php // Moved here from core/b26f29a6-1ee831c8.task.php require_once(INCLUDE_DIR . 'class.list.php'); if ($list = DynamicList::objects()->filter(array('type' => 'ticket-status'))->first()) // Already have ticket statuses return; $i18n = new Internationalization($cfg->get('system_language', 'en_US')); $lists = $i18n->getTemplate('list.yaml')->getData(); foreach ($lists as $l) { DynamicList::create($l); } $statuses = $i18n->getTemplate('ticket_status.yaml')->getData(); foreach ($statuses as $s) { TicketStatus::__create($s); } } } return 'StatusListCreater';