Remove obsolete method parameter
authorMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 13:41:14 +0000 (15:41 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 13:41:14 +0000 (15:41 +0200)
wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php
wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php
wcfsetup/install/files/lib/system/user/notification/UserNotificationHandler.class.php

index 2244b8bf9072da8d077a948d749a36477c9db40f..31d1cb3f53cee58be8a412239bc3992dc20d5822 100644 (file)
@@ -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);
        }
        
        /**
index 5e76a2336773934d94bae460cbc46f7d276205c0..ba57970b8c3df18b19be38b8269eab4c522fddd2 100644 (file)
@@ -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
index b9aa49bd6a67f925aeada0cbdffbfb2a15312cc2..04813f065f84ae1530137d4b8e1ac734d456b947 100644 (file)
@@ -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;