X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizard.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizard.java index 992f064..572bf4c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizard.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizard.java @@ -153,7 +153,7 @@ public class PHPFileWizard extends Wizard implements INewWizard { final int precLastDot = fileName.lastIndexOf('.',lastDot-1); if (precLastDot == -1) return null; if (!fileName.substring(precLastDot+1,lastDot).toUpperCase().equals("CLASS")) return null; - return fileName.substring(0,precLastDot-1); + return fileName.substring(0,precLastDot); } /**