diff --git a/CHANGELOG.md b/CHANGELOG.md index 66ff385..b2e7d90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========================== +## 2.0.10 (`2001070`) + +- **Fix:** Call to undefined method getNewTimestamp (#57) + ## 2.0.9 (`2000970`) - **Fix:** Undefined index exception thrown when using inline moderation and invalid date is set (#52) diff --git a/ControllerPlugin/Content.php b/ControllerPlugin/Content.php index bf88ddc..107dfec 100644 --- a/ControllerPlugin/Content.php +++ b/ControllerPlugin/Content.php @@ -197,7 +197,7 @@ protected function setNewOwnerDateTimeAndInterval(AbstractService $service, /** $newTimestamp = $ownerChangerSvc->getNewTimestamp($content); } - if ($oldTimestamp !== $newTimestamp && !$handler->canChangeDate($content, $service->getNewTimestamp($content), $error)) + if ($oldTimestamp !== $newTimestamp && !$handler->canChangeDate($content, $newTimestamp, $error)) { throw $this->exception($this->noPermission($error)); } diff --git a/addon.json b/addon.json index 1f139af..15bb059 100644 --- a/addon.json +++ b/addon.json @@ -2,8 +2,8 @@ "legacy_addon_id": "", "title": "Change Content Owner", "description": "Change Content Owner is an add-on that allows you to change content owner", - "version_id": 2000970, - "version_string": "2.0.9", + "version_id": 2001070, + "version_string": "2.0.10", "dev": "TickTackk", "dev_url": "https://xenforo.com/community/members/batpool52.90375/", "faq_url": "",