Remove obsolete parameters in method calls
authorMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 08:33:39 +0000 (09:33 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 08:33:39 +0000 (09:33 +0100)
The removed parameters do not exist (anymore) in the called method’s
signature.

wcfsetup/install/files/lib/acp/form/UserGroupAssignmentAddForm.class.php
wcfsetup/install/files/lib/action/ImageProxyAction.class.php
wcfsetup/install/files/lib/data/attachment/AttachmentAction.class.php
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php
wcfsetup/install/files/lib/data/package/Package.class.php
wcfsetup/install/files/lib/data/user/avatar/UserAvatarAction.class.php
wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php
wcfsetup/install/files/lib/system/setup/Installer.class.php

index d72f3758f675b8c6278496729db223037a90985a..1101c60114b150a5ba389bd7a1ff0ff207769e49 100644 (file)
@@ -95,7 +95,7 @@ class UserGroupAssignmentAddForm extends AbstractForm {
                        return strcmp($groupA->getName(), $groupB->getName());
                });
                
-               $this->conditions = UserGroupAssignmentHandler::getInstance()->getGroupedObjectTypes('com.woltlab.wcf.condition.userGroupAssignment');
+               $this->conditions = UserGroupAssignmentHandler::getInstance()->getGroupedObjectTypes();
                
                parent::readData();
        }
index 7c31ac235595fbb78c8765d4b5c5c4899e464c1e..3d17736a01cd2949ebf5bd47239ef7c643da9eda 100644 (file)
@@ -51,7 +51,7 @@ class ImageProxyAction extends AbstractAction {
                        $fileLocation = WCF_DIR.'images/proxy/'.substr($fileName, 0, 2).'/'.$fileName.($fileExtension ? '.'.$fileExtension : '');
                        $dir = dirname($fileLocation);
                        if (!@file_exists($dir)) {
-                               FileUtil::makePath($dir, 0777);
+                               FileUtil::makePath($dir);
                        }
                        
                        // download image
index 03fbebf93319da5ab96ef62d5dab60bb659f5246..c0aed2f4a1db8307bad6bc1a22d98bdc729fb62f 100644 (file)
@@ -164,7 +164,7 @@ class AttachmentAction extends AbstractDatabaseObjectAction {
                        // and create subdirectory if necessary
                        $dir = dirname($attachment->getLocation());
                        if (!@file_exists($dir)) {
-                               FileUtil::makePath($dir, 0777);
+                               FileUtil::makePath($dir);
                        }
                        
                        // move uploaded file
index 881b2d9bfb14210a34190bf2b98cfc9baa293ad3..512ad34b2d53d438e8e9f2c4c40ab3aef7791be1 100644 (file)
@@ -455,7 +455,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
                }
                
                // update the relevant language files
-               self::deleteLanguageFiles($this->languageID, $category->languageCategory, $packageID);
+               self::deleteLanguageFiles($this->languageID, $category->languageCategory);
                
                // delete relevant template compilations
                $this->deleteCompiledTemplates();
index 86351a14fcf5fd207adc4254047f9e4e9e3f0c01..a88a5c41331e7781a09adfe937a344dcd2fd19f9 100644 (file)
@@ -152,7 +152,7 @@ class Package extends DatabaseObject {
                }
                
                // check if package is required by another package
-               if (self::isRequired($this->packageID)) {
+               if ($this->isRequired()) {
                        return false;
                }
                
index c38908aba6e7230b3922702cf0a8c4c2cf7f1556..9e99710860c0a6c4c553c3a17aa19a63528b970d 100644 (file)
@@ -94,7 +94,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction {
                                // and create subdirectory if necessary
                                $dir = dirname($avatar->getLocation());
                                if (!@file_exists($dir)) {
-                                       FileUtil::makePath($dir, 0777);
+                                       FileUtil::makePath($dir);
                                }
                                
                                // move uploaded file
@@ -230,7 +230,7 @@ class UserAvatarAction extends AbstractDatabaseObjectAction {
                // and create subdirectory if necessary
                $dir = dirname($avatar->getLocation());
                if (!@file_exists($dir)) {
-                       FileUtil::makePath($dir, 0777);
+                       FileUtil::makePath($dir);
                }
                
                // move uploaded file
index 7818f47057071b35ee688461184a56fcc438a34e..02e25cdbca67595b89b82f096de67761bf6b3e40 100644 (file)
@@ -54,7 +54,7 @@ class UserAvatarImporter extends AbstractImporter {
                // and create subdirectory if necessary
                $dir = dirname($avatar->getLocation());
                if (!@file_exists($dir)) {
-                       FileUtil::makePath($dir, 0777);
+                       FileUtil::makePath($dir);
                }
                
                // copy file
index 825f4ee86980c2ddace76b42a10e6eeb3ac2f30b..261110555beea92d7f826200a012f8194822254c 100644 (file)
@@ -61,7 +61,7 @@ class Installer {
         */
        protected function createTargetDir() {
                if (!@is_dir($this->targetDir)) {
-                       if (!FileUtil::makePath($this->targetDir, (FileUtil::isApacheModule() ? 0777 : 0755))) {
+                       if (!FileUtil::makePath($this->targetDir)) {
                                throw new SystemException("Could not create dir '".$this->targetDir."'");
                        }
                }