From 3ca4c3c3d6e280266888a1548097576c3cf1488d Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 8 Aug 2020 17:06:42 +0200 Subject: [PATCH] Fixed gh-583 spelling mistake in JError::raiseWaring(..) --- README.md | 2 +- admin/README.txt | 2 +- admin/compiler/joomla_3/JModelItem_custom_admin.php | 4 ++-- admin/compiler/joomla_3/JModelItem_site.php | 2 +- componentbuilder.xml | 2 +- site/models/api.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5f9bce78a..a32154a87 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 29th July, 2020 ++ *Last Build*: 8th August, 2020 + *Version*: 2.11.3 + *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt diff --git a/admin/README.txt b/admin/README.txt index 5f9bce78a..a32154a87 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -144,7 +144,7 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 29th July, 2020 ++ *Last Build*: 8th August, 2020 + *Version*: 2.11.3 + *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt diff --git a/admin/compiler/joomla_3/JModelItem_custom_admin.php b/admin/compiler/joomla_3/JModelItem_custom_admin.php index 0ba6a9c0a..494dd2087 100644 --- a/admin/compiler/joomla_3/JModelItem_custom_admin.php +++ b/admin/compiler/joomla_3/JModelItem_custom_admin.php @@ -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 { diff --git a/admin/compiler/joomla_3/JModelItem_site.php b/admin/compiler/joomla_3/JModelItem_site.php index 85e514bac..dfa8d4ef1 100644 --- a/admin/compiler/joomla_3/JModelItem_site.php +++ b/admin/compiler/joomla_3/JModelItem_site.php @@ -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 { diff --git a/componentbuilder.xml b/componentbuilder.xml index 91e144c4f..887d848fa 100644 --- a/componentbuilder.xml +++ b/componentbuilder.xml @@ -1,7 +1,7 @@ COM_COMPONENTBUILDER - 29th July, 2020 + 8th August, 2020 Llewellyn van der Merwe llewellyn@joomlacomponentbuilder.com http://www.joomlacomponentbuilder.com diff --git a/site/models/api.php b/site/models/api.php index 7e9ee8d41..b6b773d1c 100644 --- a/site/models/api.php +++ b/site/models/api.php @@ -130,7 +130,7 @@ class ComponentbuilderModelApi 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 {