A small correction (3.6.0)

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
shddcit
Posts: 60
Joined: Wed Mar 30, 2022 3:54 pm

A small correction (3.6.0)

Post by shddcit »

In the file admin/admin_ticket.php, in the line

Code: Select all

$html.='<a class="btn btn-links unlink" data-ticket1='.$linked_ticket['id'].' data-ticket2='.$ticket['id'].' data-trackid='.$linked_ticket['trackid'].' data-action="admin_ticket.php?track='.$trackingID.'&amp;Refresh='.rand(10000,99999).'" href="javascript:;">Unlink</a>';
there is a direct use of the word "Unlink", which will always be displayed in English regardless of the Hesk localization settings.

I made the following correction in this file:

Code: Select all

$html .= '<a class="btn btn-links unlink" data-ticket1="'.$linked_ticket['id'].'" data-ticket2="'.$ticket['id'].'" data-trackid="'.$linked_ticket['trackid'].'" data-action="admin_ticket.php?track='.$trackingID.'&amp;Refresh='.rand(10000,99999).'" href="javascript:;">'.$hesklang['unlink_btn'].'</a>';
Then, I added the following line to the English language file /language/en/texp.php:

Code: Select all

$hesklang['unlink_btn'] = 'Unlink';
and, accordingly, the same entry with the Russian translation to the Russian localization file /language/ru/texp.php.

The "Unlink" button is dynamic, and its text does not go beyond its boundaries.
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: A small correction (3.6.0)

Post by Klemen »

Thanks for the correction, looks like we missed this one.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply