Skip to content

Commit

Permalink
Removed deprecated functions: utf8_encode & decode
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Aug 5, 2023
1 parent 8796ff7 commit a338fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/libs/pot/OTS_ServerInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function status()
{
// loads respond XML
$info = new OTS_InfoRespond();
if(!$info->loadXML( utf8_encode($status->getBuffer())))
if(!$info->loadXML( $status->getBuffer()))
return false;

return $info;
Expand Down
2 changes: 1 addition & 1 deletion templates/tibiacom/headline.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

// set text
$font = getenv('GDFONTPATH') . DIRECTORY_SEPARATOR . 'martel.ttf';
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, utf8_decode($_GET['t']));
imagettftext($image, 18, 0, 4, 20, imagecolorallocate($image, 240, 209, 164), $font, $_GET['t']);

// header mime type
header('Content-type: image/gif');
Expand Down

0 comments on commit a338fd9

Please sign in to comment.