Bug #85182 » patch.diff

Frédéric Lebel, 2018-06-08 05:14

View differences:

typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php
177 177
                $this->currentLinkParts['params'] = '&' . $this->currentLinkParts['url']['parameters'];
178 178
            }
179 179
        }
180

  
181
        if (!empty($this->currentLinkParts['class'])) {
182
            // Only keep last class value (others are automatically added again by required option)
183
            // https://review.typo3.org/#/c/29643
184
            $currentClasses = GeneralUtility::trimExplode(' ', $this->currentLinkParts['class'], true);
185
            if (count($currentClasses) > 1) {
186
                $this->currentLinkParts['class'] = end($currentClasses);
187
            }
188
        }
189 180
        parent::initCurrentUrl();
190 181
    }
191 182

  
    (1-1/1)