Skip to content

Commit ea4dc0b

Browse files
committed
Adjust for WarningProvider interface changes. Use helper to generate standard warning.
SVN r64448 |2019-09-06 22:53:24 +0000
1 parent bcd277d commit ea4dc0b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

LDK/src/org/labkey/ldk/sql/LDKNaturalizeInstallationManager.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package org.labkey.ldk.sql;
22

3-
import org.labkey.api.data.ContainerManager;
43
import org.labkey.api.data.DbSchema;
54
import org.labkey.api.data.DbSchemaType;
65
import org.labkey.api.data.bigiron.AbstractClrInstallationManager;
7-
import org.labkey.api.view.ActionURL;
86
import org.labkey.api.view.template.Warnings;
97
import org.labkey.ldk.LDKController;
108
import org.labkey.ldk.LDKModule;
@@ -15,7 +13,7 @@ public class LDKNaturalizeInstallationManager extends AbstractClrInstallationMan
1513
{
1614
private static final String INITIAL_VERSION = "1.0.0";
1715
private static final String CURRENT_VERSION = "1.0.1";
18-
private static final String DESCRIPTION = "This function helps with applying more human-friendly sorting of mixed numeric/text values. ";
16+
private static final String DESCRIPTION = "This function helps with applying more human-friendly sorting of mixed numeric/text values.";
1917

2018
private static final LDKNaturalizeInstallationManager _instance = new LDKNaturalizeInstallationManager();
2119

@@ -85,7 +83,6 @@ protected String getVersionCheckSql()
8583
@Override
8684
protected void addAdminWarningMessages(Warnings warnings)
8785
{
88-
ActionURL downloadURL = new ActionURL(LDKController.DownloadNaturalizeInstallScriptAction.class, ContainerManager.getRoot());
89-
warnings.add("The LDK naturalize function is not installed. " + DESCRIPTION + "<a href=\"" + downloadURL + "\">Download installation script.</a>");
86+
addAdminWarningMessage(warnings, "The LDK naturalize function is not installed. " + DESCRIPTION, LDKController.DownloadNaturalizeInstallScriptAction.class, null);
9087
}
9188
}

0 commit comments

Comments
 (0)