From 14a08d76bf50268eb26862e4efb59b1b155c1ba5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 6 Apr 2016 15:41:14 +0200 Subject: [PATCH] Remove obsolete method parameter --- .../system/label/object/AbstractLabelObjectHandler.class.php | 2 +- .../lib/system/upload/DefaultUploadFileSaveStrategy.class.php | 2 +- .../system/user/notification/UserNotificationHandler.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php index 2244b8bf90..31d1cb3f53 100644 --- a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php @@ -145,7 +145,7 @@ abstract class AbstractLabelObjectHandler extends SingletonFactory implements IL * @see \wcf\system\label\manager\ILabelObjectHandler::removeLabels() */ public function removeLabels($objectID, $validatePermissions = true) { - LabelHandler::getInstance()->removeLabels($this->objectTypeID, $objectID, $validatePermissions); + LabelHandler::getInstance()->removeLabels($this->objectTypeID, $objectID); } /** diff --git a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php index 5e76a23367..ba57970b8c 100644 --- a/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php +++ b/wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php @@ -121,7 +121,7 @@ class DefaultUploadFileSaveStrategy implements IUploadFileSaveStrategy { $dir = dirname($object->getLocation()); if (!@file_exists($dir)) { - FileUtil::makePath($dir, 0777); + FileUtil::makePath($dir); } // move uploaded file diff --git a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php index b9aa49bd6a..04813f065f 100644 --- a/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php @@ -331,7 +331,7 @@ class UserNotificationHandler extends SingletonFactory { $notifications = array_merge($notifications, $this->fetchNotifications($limit, 0, 1)); } - $returnValues = $this->processNotifications($notifications, true); + $returnValues = $this->processNotifications($notifications); $returnValues['notificationCount'] = $notificationCount; return $returnValues; -- 2.20.1