Skip to content

Commit

Permalink
Update update.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheSeg committed Sep 26, 2017
1 parent d3a0b9f commit 11d87fe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions administrator/components/com_installer/models/update.php
Expand Up @@ -400,8 +400,16 @@ private function install($update)

if (!isset($update->get('downloadurl')->_data))
{
JError::raiseWarning('', JText::_('COM_INSTALLER_INVALID_EXTENSION_UPDATE'));

JError::raiseWarning('', JText::sprintf('COM_INSTALLER_INVALID_EXTENSION_UPDATE',$update->packageName));
if ($update->noPhpMatch) {
JError::raiseWarning('', $JText::sprintf('COM_INSTALLER_EXTENSION_UPDATE_NO_PHP_MATCH',$update->packageName));
}
if ($update->noStabilityMatch) {
JError::raiseWarning('', JText::sprintf('COM_INSTALLER_EXTENSION_UPDATE_NO_STABILITY_MATCH',$update->packageName));
}
if ($update->noDbMatch) {
JError::raiseWarning('', JText::sprintf('COM_INSTALLER_EXTENSION_UPDATE_NO_DB_MATCH',$update->packageName));
}
return false;
}

Expand Down

0 comments on commit 11d87fe

Please sign in to comment.