From b5e40bc8f615caeba0a0b5d5d777037fff87e2f9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 2 Feb 2016 10:11:19 +0100 Subject: [PATCH] Fix IManager::isFormattingFilteredObject() --- lib/private/activitymanager.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/private/activitymanager.php b/lib/private/activitymanager.php index e5235cb9bfe..68bb8c13401 100644 --- a/lib/private/activitymanager.php +++ b/lib/private/activitymanager.php @@ -310,20 +310,19 @@ class ActivityManager implements IManager { /** * @param string $type - * @param int $id + * @param string $id */ public function setFormattingObject($type, $id) { $this->formattingObjectType = $type; - $this->formattingObjectId = $id; + $this->formattingObjectId = (string) $id; } /** * @return bool */ public function isFormattingFilteredObject() { - return 'filter' === $this->request->getParam('filter') - && $this->formattingObjectType === $this->request->getParam('objecttype') - && $this->formattingObjectId === $this->request->getParam('objectid'); + return $this->formattingObjectType === $this->request->getParam('object_type') + && $this->formattingObjectId === $this->request->getParam('object_id'); } /** -- 2.39.5