1818class InstallerModelLanguages extends JModelList
1919{
2020 /**
21- * @var integer Extension ID of the en-GB language pack.
21+ * Extension ID of the en-GB language pack.
22+ *
23+ * @var integer
2224 * @since 3.4
2325 */
2426 private $ enGbExtensionId = 0 ;
2527
2628 /**
27- * @var integer Upate Site ID of the en-GB language pack.
29+ * Upate Site ID of the en-GB language pack.
30+ *
31+ * @var integer
2832 * @since 3.4
2933 */
3034 private $ updateSiteId = 0 ;
@@ -271,7 +275,8 @@ public function install($lids)
271275 // Could not find the url, the information in the update server may be corrupt.
272276 $ message = JText::sprintf ('COM_INSTALLER_MSG_LANGUAGES_CANT_FIND_REMOTE_MANIFEST ' , $ language ->name );
273277 $ message .= ' ' . JText::_ ('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER ' );
274- $ app ->enqueueMessage ($ message );
278+ $ app ->enqueueMessage ($ message , 'warning ' );
279+
275280 continue ;
276281 }
277282
@@ -283,7 +288,8 @@ public function install($lids)
283288 // Could not find the url , maybe the url is wrong in the update server, or there is not internet access
284289 $ message = JText::sprintf ('COM_INSTALLER_MSG_LANGUAGES_CANT_FIND_REMOTE_PACKAGE ' , $ language ->name );
285290 $ message .= ' ' . JText::_ ('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER ' );
286- $ app ->enqueueMessage ($ message );
291+ $ app ->enqueueMessage ($ message , 'warning ' );
292+
287293 continue ;
288294 }
289295
@@ -296,7 +302,8 @@ public function install($lids)
296302 // There was an error installing the package.
297303 $ message = JText::sprintf ('COM_INSTALLER_INSTALL_ERROR ' , $ language ->name );
298304 $ message .= ' ' . JText::_ ('COM_INSTALLER_MSG_LANGUAGES_TRY_LATER ' );
299- $ app ->enqueueMessage ($ message );
305+ $ app ->enqueueMessage ($ message , 'error ' );
306+
300307 continue ;
301308 }
302309
@@ -306,8 +313,7 @@ public function install($lids)
306313 // Cleanup the install files in tmp folder.
307314 if (!is_file ($ package ['packagefile ' ]))
308315 {
309- $ config = JFactory::getConfig ();
310- $ package ['packagefile ' ] = $ config ->get ('tmp_path ' ) . '/ ' . $ package ['packagefile ' ];
316+ $ package ['packagefile ' ] = JFactory::getConfig ()->get ('tmp_path ' ) . '/ ' . $ package ['packagefile ' ];
311317 }
312318
313319 JInstallerHelper::cleanupInstall ($ package ['packagefile ' ], $ package ['extractdir ' ]);
0 commit comments