[CLEANUP] Move functions to GraphicalFunctions
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / Menu / TextMenuContentObject.php
index 1ff28a7..5150057 100644 (file)
@@ -14,6 +14,8 @@ namespace TYPO3\CMS\Frontend\ContentObject\Menu;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Core\Imaging\GraphicalFunctions;
+
 /**
  * Extension class creating text based menus
  *
@@ -170,7 +172,7 @@ class TextMenuContentObject extends AbstractMenuContentObject {
        public function getBeforeAfter($pref) {
                $res = '';
                if ($imgInfo = $this->WMcObj->getImgResource($this->I['val'][$pref . 'Img'], $this->I['val'][$pref . 'Img.'])) {
-                       $imgInfo[3] = \TYPO3\CMS\Core\Utility\GeneralUtility::png_to_gif_by_imagemagick($imgInfo[3]);
+                       $imgInfo[3] = GraphicalFunctions::pngToGifByImagemagick($imgInfo[3]);
                        $theName = $this->imgNamePrefix . $this->I['uid'] . $this->I['INPfix'] . $pref;
                        $name = ' ' . $this->nameAttribute . '="' . $theName . '"';
                        $GLOBALS['TSFE']->imagesOnPage[] = $imgInfo[3];