From: Janusz Dobrowolski Date: Sat, 7 Aug 2010 09:59:02 +0000 (+0000) Subject: Additional error messages. X-Git-Tag: v2.4.2~19^2~714 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=5c63beb6cca17eb9fd9c63c89fa8b814ae5c8dcf;p=fa-stable.git Additional error messages. --- diff --git a/includes/packages.inc b/includes/packages.inc index a98b8f89..247c25da 100644 --- a/includes/packages.inc +++ b/includes/packages.inc @@ -590,10 +590,15 @@ function install_language($pkg_name) write_lang($installed_languages); unlink("$path_to_root/tmp/".$pkg['Filename'].'.pkg'); $Ajax->activate('lang_tbl'); + } else { + display_error(implode('
', $package->error)); + return false; } - + } else { + display_error(sprintf(_("Package '%s' not found."), $pkg_name)); + return false; } - + return true; } //--------------------------------------------------------------------------------------------- // Install/update extension or theme package from repository @@ -635,6 +640,9 @@ function install_extension($pkg_name) display_error(implode('
', $package->error)); return false; } + } else { + display_error(sprintf(_("Package '%s' not found."), $pkg_name)); + return false; } return true; }