[TASK] Use flash message in CreatePageWizard 43/21843/2
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 3 Jul 2013 13:17:51 +0000 (15:17 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 4 Jul 2013 07:37:55 +0000 (09:37 +0200)
Instead of using some old code, a flash message is better.

furthermore a not used function is removed

Resolves: #49637
ReleaseS: 6.2
Change-Id: I6f444da59df77d81d8948b3940e17703f1cecdc2
Reviewed-on: https://review.typo3.org/21843
Reviewed-by: Mattias Nilsson
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/wizard_crpages/Classes/Controller/CreatePagesWizardModuleFunctionController.php

index 32f6d5f..ce506cf 100644 (file)
@@ -186,7 +186,7 @@ class CreatePagesWizardModuleFunctionController extends \TYPO3\CMS\Backend\Modul
                                ');
                        }
                } else {
-                       $theCode .= $GLOBALS['TBE_TEMPLATE']->rfw($GLOBALS['LANG']->getLL('wiz_newPages_errorMsg1'));
+                       $theCode .= \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', '', $GLOBALS['LANG']->getLL('wiz_newPages_errorMsg1'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR)->render();
                }
                // CSH
                $theCode .= \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('_MOD_web_func', 'tx_wizardcrpages', $GLOBALS['BACK_PATH'], '<br />|');
@@ -196,16 +196,6 @@ class CreatePagesWizardModuleFunctionController extends \TYPO3\CMS\Backend\Modul
        }
 
        /**
-        * Return the helpbubble image tag.
-        *
-        * @return string HTML code for a help-bubble image.
-        * @todo Define visibility
-        */
-       public function helpBubble() {
-               return '<img src="' . $GLOBALS['BACK_PATH'] . 'gfx/helpbubble.gif" width="14" height="14" hspace="2" align="top" alt="" />';
-       }
-
-       /**
         * Return one line in the form
         *
         * @param mixed $index An integer: the line counter for which to create the line. Use "#" to create an template for javascript (used by ExtJS)