Skip to content
Snippets Groups Projects
Commit a210b987 authored by JediKev's avatar JediKev
Browse files

Merge branch 'develop' into develop-next

parents b7cb9dfd 2e6d1e55
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ if(!defined('OSTSCPINC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access D ...@@ -17,7 +17,7 @@ if(!defined('OSTSCPINC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access D
<li class="<?php echo $upgrader->check_php()?'yes':'no'; ?>"> <li class="<?php echo $upgrader->check_php()?'yes':'no'; ?>">
<?php echo sprintf(__('%s or later'), 'PHP v'.SetupWizard::getPHPVersion()); ?> - (<small><b><?php echo PHP_VERSION; ?></b></small>)</li> <?php echo sprintf(__('%s or later'), 'PHP v'.SetupWizard::getPHPVersion()); ?> - (<small><b><?php echo PHP_VERSION; ?></b></small>)</li>
<li class="<?php echo $upgrader->check_mysql()?'yes':'no'; ?>"> <li class="<?php echo $upgrader->check_mysql()?'yes':'no'; ?>">
<?php echo __('MySQLi extension for PHP'); ?>- (<small><b><?php <?php echo __('MySQLi extension for PHP'); ?> - (<small><b><?php
echo extension_loaded('mysqli')?__('module loaded'):__('missing!'); ?></b></small>)</li> echo extension_loaded('mysqli')?__('module loaded'):__('missing!'); ?></b></small>)</li>
<li class="<?php echo $upgrader->check_mysql_version()?'yes':'no'; ?>"> <li class="<?php echo $upgrader->check_mysql_version()?'yes':'no'; ?>">
<?php echo sprintf(__('%s or later'), 'MySQL v'.SetupWizard::getMySQLVersion()); ?> - (<small><b><?php echo db_version(); ?></b></small>)</li> <?php echo sprintf(__('%s or later'), 'MySQL v'.SetupWizard::getMySQLVersion()); ?> - (<small><b><?php echo db_version(); ?></b></small>)</li>
......
...@@ -496,9 +496,14 @@ if($ticket) { ...@@ -496,9 +496,14 @@ if($ticket) {
$f->filterFields(function($f) { return !$f->isStorable(); }); $f->filterFields(function($f) { return !$f->isStorable(); });
$f->addMissingFields(); $f->addMissingFields();
} }
} elseif($_REQUEST['a'] == 'print' && !$ticket->pdfExport($_REQUEST['psize'], $_REQUEST['notes'], $_REQUEST['events'])) } elseif($_REQUEST['a'] == 'print')
$errors['err'] = __('Unable to export the ticket to PDF for print.') if (!extension_loaded('mbstring'))
.' '.__('Internal error occurred'); $errors['err'] = sprintf('%s %s',
'mbstring',
__('extension required to print ticket to PDF'));
elseif (!$ticket->pdfExport($_REQUEST['psize'], $_REQUEST['notes'], $_REQUEST['events']))
$errors['err'] = __('Unable to export the ticket to PDF for print.')
.' '.__('Internal error occurred');
} else { } else {
$inc = 'templates/queue-tickets.tmpl.php'; $inc = 'templates/queue-tickets.tmpl.php';
if ($_REQUEST['a']=='open' && if ($_REQUEST['a']=='open' &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment