[CLEANUP] Remove unused parameter in workspaces hook implementation 24/52924/6
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 24 May 2017 05:05:38 +0000 (07:05 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 28 May 2017 18:33:47 +0000 (20:33 +0200)
Remove the last parameter of method makeEditForm_accessCheck
in BackendUtilityHook as it is unused.

Resolves: #81290
Releases: master
Change-Id: I46a8d88273765762c6dbc8793b76e35b5a2b6653
Reviewed-on: https://review.typo3.org/52924
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/workspaces/Classes/Hook/BackendUtilityHook.php

index f477383..217c6ad 100644 (file)
@@ -65,10 +65,9 @@ class BackendUtilityHook implements \TYPO3\CMS\Core\SingletonInterface
      * a staged element
      *
      * @param array $params
-     * @param \TYPO3\CMS\Backend\Controller\EditDocumentController $form
      * @return bool
      */
-    public function makeEditForm_accessCheck($params, &$form)
+    public function makeEditForm_accessCheck($params)
     {
         if ($GLOBALS['BE_USER']->workspace !== 0 && $GLOBALS['TCA'][$params['table']]['ctrl']['versioningWS']) {
             $record = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecordWSOL($params['table'], $params['uid']);