--- projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java 2001/02/25 20:49:29 1.6 +++ projects/cms/source/util/uk/org/iscream/cms/util/FormatName.java 2001/05/29 17:02:35 1.12 @@ -1,5 +1,5 @@ //---PACKAGE DECLARATION--- -package uk.ac.ukc.iscream.util; +package uk.org.iscream.cms.server.util; //---IMPORTS--- import java.util.Date; @@ -13,7 +13,7 @@ import java.util.Locale; * a toString String to send to the logger. * * @author $Author: tdb $ - * @version $Id: FormatName.java,v 1.6 2001/02/25 20:49:29 tdb Exp $ + * @version $Id: FormatName.java,v 1.12 2001/05/29 17:02:35 tdb Exp $ */ public class FormatName { @@ -69,7 +69,7 @@ public class FormatName { } /** - * If the class name begins with uk.ac.ukc.iscream + * If the class name begins with uk.org.iscream.cms.server * this method will trim it off, otherwise it * leaves the string unchanged. * @@ -78,8 +78,9 @@ public class FormatName { * @return the tidy version of it */ private static String tidyClassName(String className) { - if (className.startsWith("uk.ac.ukc.iscream")) { - return className.substring(18); + String prefix = "uk.org.iscream.cms.server"; + if (className.startsWith(prefix)) { + return className.substring(prefix.length()+1); } return className; }