diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-12-18 21:31:29 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-12-18 21:32:02 -0500 |
commit | b6c3aebc035f9ab3a1db2f855130760515fdce6d (patch) | |
tree | 112ca1e511854ed59e7ca1e79929cf51abf3750e /usr/local/www/pkg_mgr.php | |
parent | 816a5affab83ff52c6f893c2c1f1072ee5a079f6 (diff) | |
download | pfsense-b6c3aebc035f9ab3a1db2f855130760515fdce6d.zip pfsense-b6c3aebc035f9ab3a1db2f855130760515fdce6d.tar.gz |
show correct site in "Unable to communicate" error, clarify error message.
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index c647a4b..a108825 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -50,12 +50,12 @@ if($pkg_info) { //$pkg_sizes = get_pkg_sizes(); } else { $using_cache = true; + $xmlrpc_base_url = isset($config['system']['altpkgrepo']['enable']) ? $config['system']['altpkgrepo']['xmlrpcbaseurl'] : $g['xmlrpcbaseurl']; if(file_exists("{$g['tmp_path']}/pkg_info.cache")) { - $xmlrpc_base_url = isset($config['system']['altpkgrepo']['enable']) ? $config['system']['altpkgrepo']['xmlrpcbaseurl'] : $g['xmlrpcbaseurl']; $savemsg = "Unable to retrieve package info from {$xmlrpc_base_url}. Cached data will be used."; $pkg_info = unserialize(@file_get_contents("{$g['tmp_path']}/pkg_info.cache")); } else { - $savemsg = "Unable to communicate to {$g['product_website']}. Please check DNS, default gateway, etc."; + $savemsg = "Unable to communicate with {$xmlrpc_base_url}. Please verify DNS and interface configuration, and that {$g['product_name']} has functional Internet connectivity."; } } |