diff --git a/administrator/components/com_templates/models/style.php b/administrator/components/com_templates/models/style.php index fcf85eafe3bad..32bf7c31901f5 100644 --- a/administrator/components/com_templates/models/style.php +++ b/administrator/components/com_templates/models/style.php @@ -120,7 +120,7 @@ public function delete(&$pks) // You should not delete a default style if ($table->home != '0') { - JError::raiseWarning(SOME_ERROR_NUMBER, JText::_('COM_TEMPLATES_STYLE_CANNOT_DELETE_DEFAULT_STYLE')); + JError::raiseWarning(500, JText::_('COM_TEMPLATES_STYLE_CANNOT_DELETE_DEFAULT_STYLE')); return false; }