Fredrik wrote: > I'm looking for a way to handle an expired Magnolia license (e.g. show an > error code to the user making it possible for support to understand what the > problem is, logging information about the expired license, etc). Information > about the expired license is shown in the admin central so it must be > possible to find this information somewhere. I have looked in the magnolia > logs when using an invalid license, but I can not find any information there. > Is there a way for me to find out, in the code, whether the Magnolia license > is expired/invalid?
---- import info.magnolia.license.LicenseManager; import info.magnolia.license.LicenseConsts; boolean valid = LicenseManager.getInstance().getLicenseStatus(LicenseConsts.MODULE_ENTERPRISE).isValid(); ---- Nils. ------------------------------------------------------------------------ VPRO www.vpro.nl ------------------------------------------------------------------------ ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
