Skip to content

Commit

Permalink
Fixed some errors with PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 20, 2022
1 parent ace20bc commit 23e8632
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/xmlsitemap/xmlsitemap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private function getTimezoneStr()
if ($retval === null) {
if (isset($_CONF['timezone'])) {
try {
$now = new DateTime(null, new DateTimeZone($_CONF['timezone']));
$now = new DateTime('now', new DateTimeZone($_CONF['timezone']));
$offset = $now->getOffset();

if ($offset >= 0) {
Expand Down
4 changes: 4 additions & 0 deletions system/classes/upload.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,10 @@ private function _copyFile()
$this->printErrors();
exit;
} else {
if (empty($newSize)) {
$newSize = '?';
}

$this->_addDebugMsg('Image, ' . $this->_currentFile['name'] . ' was resized from ' . $imageInfo['width'] . 'x' . $imageInfo['height'] . ' to ' . $newSize);
}
}
Expand Down

0 comments on commit 23e8632

Please sign in to comment.