Fixed gh-583 spelling mistake in JError::raiseWaring(..)

This commit is contained in:
2020-08-08 17:06:42 +02:00
parent 3fa87a2ccc
commit 3ca4c3c3d6
6 changed files with 7 additions and 7 deletions

View File

@ -108,13 +108,13 @@ class ###Component###Model###SView### extends JModelItem
{
try
{###CUSTOM_ADMIN_GET_ITEM###
}
}
catch (Exception $e)
{
if ($e->getCode() == 404)
{
// Need to go thru the error handler to allow Redirect to work.
JError::raiseWaring(404, $e->getMessage());
JError::raiseWarning(404, $e->getMessage());
}
else
{

View File

@ -107,7 +107,7 @@ class ###Component###Model###SView### extends JModelItem
if ($e->getCode() == 404)
{
// Need to go thru the error handler to allow Redirect to work.
JError::raiseWaring(404, $e->getMessage());
JError::raiseWarning(404, $e->getMessage());
}
else
{