diff --git a/include/class.forms.php b/include/class.forms.php index f9c5d2258cbb612e740c42ca667748972f954710..ae165e085ceeeb8331ca2ae73c3211a608b3f27e 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1795,6 +1795,11 @@ class ChoiceField extends FormField { return (string) $value; } + function asVar($value, $id=false) { + $value = $this->to_php($value); + return $this->toString($this->getChoice($value)); + } + function whatChanged($before, $after) { $B = (array) $before; $A = (array) $after; diff --git a/include/class.thread.php b/include/class.thread.php index 7069808d354bcbc2111a940079c014edd7c1681a..f8455faf51dd6a402f9ab2e1442f13d0f7ec6088 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -2542,7 +2542,7 @@ class TextThreadEntryBody extends ThreadEntryBody { } function getClean() { - return Format::htmlchars(Format::stripEmptyLines(parent::getClean()), true); + return Format::htmlchars(Format::html_balance(Format::stripEmptyLines(parent::getClean()))); } function prepend($what) { diff --git a/include/cli/modules/unpack.php b/include/cli/modules/unpack.php index a156288846bc808f3ceba9783b537013319d89a0..a2251ddc661118f7396f254e32b4a8ecf5f83a0e 100644 --- a/include/cli/modules/unpack.php +++ b/include/cli/modules/unpack.php @@ -210,7 +210,11 @@ class Unpacker extends Module { ), $pipes); fwrite($pipes[0], "<?php - include '{$this->source}/bootstrap.php'; + if (file_exists('{$this->destination}/bootstrap.php')) + include '{$this->destination}/bootstrap.php'; + else + include '{$this->source}/bootstrap.php'; + print INCLUDE_DIR; "); fclose($pipes[0]); diff --git a/include/client/tickets.inc.php b/include/client/tickets.inc.php index b7e536fc3ec61ef6e63735dedae01c2edb412224..9e678e31cbaa4a2ff9fec9d63fcb38ed172540b9 100644 --- a/include/client/tickets.inc.php +++ b/include/client/tickets.inc.php @@ -47,7 +47,7 @@ if($sort && $sortOptions[$sort]) $order_by =$sortOptions[$sort]; $order_by=$order_by ?: $sortOptions['date']; -if ($_REQUEST['order'] && $orderWays[strtoupper($_REQUEST['order'])]) +if ($_REQUEST['order'] && !is_null($orderWays[strtoupper($_REQUEST['order'])])) $order = $orderWays[strtoupper($_REQUEST['order'])]; else $order = $orderWays['DESC']; @@ -205,19 +205,19 @@ if ($closedTickets) {?> <thead> <tr> <th nowrap> - <a href="tickets.php?sort=ID&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Ticket ID"><?php echo __('Ticket #');?></a> + <a href="tickets.php?sort=ID&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Ticket ID"><?php echo __('Ticket #');?><i class="icon-sort"></i></a> </th> <th width="120"> - <a href="tickets.php?sort=date&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Date"><?php echo __('Create Date');?></a> + <a href="tickets.php?sort=date&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Date"><?php echo __('Create Date');?><i class="icon-sort"></i></a> </th> <th width="100"> - <a href="tickets.php?sort=status&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Status"><?php echo __('Status');?></a> + <a href="tickets.php?sort=status&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Status"><?php echo __('Status');?><i class="icon-sort"></i></a> </th> <th width="320"> - <a href="tickets.php?sort=subj&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Subject"><?php echo __('Subject');?></a> + <a href="tickets.php?sort=subj&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Subject"><?php echo __('Subject');?><i class="icon-sort"></i></a> </th> <th width="120"> - <a href="tickets.php?sort=dept&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Department"><?php echo __('Department');?></a> + <a href="tickets.php?sort=dept&order=<?php echo $negorder; ?><?php echo $qstr; ?>" title="Sort By Department"><?php echo __('Department');?><i class="icon-sort"></i></a> </th> </tr> </thead> diff --git a/setup/inc/footer.inc.php b/setup/inc/footer.inc.php index 5bc03569e76a870ef0ded62abae2fe750393e765..a8a594a9095b504ea347bfafcc2be81b49ad3b2f 100644 --- a/setup/inc/footer.inc.php +++ b/setup/inc/footer.inc.php @@ -2,7 +2,7 @@ <div class="clear"></div> </div> <!-- content --> </div> <!-- wizard --> - <div id="footer" class="centered">Copyright © 2013 <a target="_blank" href="http://osticket.com">osTicket.com</a></div> + <div id="footer" class="centered">Copyright © <?php echo date('Y'); ?> <a target="_blank" href="http://osticket.com">osTicket.com</a></div> <script type="text/javascript" src="../js/jquery-1.11.2.min.js"></script> <script type="text/javascript" src="../js/jstz.min.js"></script>