projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e958f58
)
Additional error messages.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sat, 7 Aug 2010 09:59:02 +0000
(09:59 +0000)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Sat, 7 Aug 2010 09:59:02 +0000
(09:59 +0000)
includes/packages.inc
patch
|
blob
|
history
diff --git
a/includes/packages.inc
b/includes/packages.inc
index a98b8f897ff639628f389d99602fd110f8104cd0..247c25da036e317cafed4dbdd5293cbff48228a3 100644
(file)
--- 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');
write_lang($installed_languages);
unlink("$path_to_root/tmp/".$pkg['Filename'].'.pkg');
$Ajax->activate('lang_tbl');
+ } else {
+ display_error(implode('<br>', $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
}
//---------------------------------------------------------------------------------------------
// Install/update extension or theme package from repository
@@
-635,6
+640,9
@@
function install_extension($pkg_name)
display_error(implode('<br>', $package->error));
return false;
}
display_error(implode('<br>', $package->error));
return false;
}
+ } else {
+ display_error(sprintf(_("Package '%s' not found."), $pkg_name));
+ return false;
}
return true;
}
}
return true;
}