Fixed bug #12117: Added use of flash messages to the Extension Manager
[Packages/TYPO3.CMS.git] / typo3 / mod / tools / em / class.em_xmlhandler.php
index 499f500..2a9404d 100644 (file)
@@ -144,7 +144,7 @@ class SC_mod_tools_em_xmlhandler {
                }
                $GLOBALS['TYPO3_DB']->sql_free_result($res);
        }
-       
+
        /**
         * Reduces the entries in $this->extensionsXML to the latest version per extension and removes entries not matching the search parameter
         * The extension key has to be a valid one as search is done for exact matches only.
@@ -402,7 +402,12 @@ class SC_mod_tools_em_xmlhandler {
                gzclose($fp);
 
                if(!$error) {
-                       $content.= '<p>The extensions list has been updated and now contains '.$extcount.' extension entries.</p>';
+                       $flashMessage = t3lib_div::makeInstance(
+                               't3lib_FlashMessage',
+                               sprintf($GLOBALS['LANG']->getLL('ext_import_extlist_updated'), $extcount),
+                               $GLOBALS['LANG']->getLL('ext_import_extlist_updated_header')
+                       );
+                       $content .= $flashMessage->render();
                }
 
                return $content;