Skip to content

Commit

Permalink
Reverted MBYTE_checkEnabled function for backward compatibility with …
Browse files Browse the repository at this point in the history
…plugins
  • Loading branch information
mystralkk committed Jan 15, 2022
1 parent 51aabc6 commit 7d33246
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions system/lib-mbyte.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ function MBYTE_languageList($charset = 'utf-8', $multilanguage = false)
return $language;
}

// replacement functions for UTF-8 functions
// $test, $enabled parameters only relevant for the PHPUnit test suite
function MBYTE_checkEnabled($test = '', $enabled = true)
{
// Always return true, since Geeklog requires PHP's mbstring extension now
return true;
}


function MBYTE_strlen($str)
{
return mb_strlen($str);
Expand Down

0 comments on commit 7d33246

Please sign in to comment.