mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Display banner message pointing to Themes page after installation
--HG-- branch : 1.x
This commit is contained in:
@@ -167,6 +167,13 @@ namespace Orchard.Packaging.Controllers {
|
||||
|
||||
try {
|
||||
_packageManager.Install(packageId, version, source.FeedUrl, HostingEnvironment.MapPath("~/"));
|
||||
|
||||
if (packageId.StartsWith(PackagingSourceManager.GetExtensionPrefix(DefaultExtensionTypes.Theme))) {
|
||||
_notifier.Information(T("The theme has been successfully installed. It can be enabled in the \"Themes\" page accessible from the menu."));
|
||||
}
|
||||
else if (packageId.StartsWith(PackagingSourceManager.GetExtensionPrefix(DefaultExtensionTypes.Module))) {
|
||||
_notifier.Information(T("The module has been successfully installed. Its features can be enabled in the \"Configuration | Features\" page accessible from the menu."));
|
||||
}
|
||||
}
|
||||
catch (Exception exception) {
|
||||
_notifier.Error(T("Package installation failed."));
|
||||
|
Reference in New Issue
Block a user