Skip to content

Commit

Permalink
[3.10] [PHP 8.1] Fixes Table User for Date/Date.php warning on login (j…
Browse files Browse the repository at this point in the history
…oomla#36804)

Fixes `Fixes `Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in libraries/src/Date/Date.php on line 112` error on login`
  • Loading branch information
beat authored Jan 23, 2022
1 parent b2206b0 commit aae1bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public function onDisplay(

if ($app->isClient('site'))
{
$uploadUrl = htmlentities($uploadUrl, null, 'UTF-8', null);
$uploadUrl = htmlentities($uploadUrl, 0, 'UTF-8', false);
}

// Is Joomla installed in subdirectory
Expand Down Expand Up @@ -1883,7 +1883,7 @@ private function onDisplayLegacy(

if ($app->isClient('site'))
{
$uploadUrl = htmlentities($uploadUrl, null, 'UTF-8', null);
$uploadUrl = htmlentities($uploadUrl, 0, 'UTF-8', false);
}

// Is Joomla installed in subdirectory
Expand Down

0 comments on commit aae1bb8

Please sign in to comment.