int dotLoc = fileName.lastIndexOf('.');
if (dotLoc != -1) {
String ext = fileName.substring(dotLoc + 1);
- if (ext.equalsIgnoreCase("php") == false) {
- updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
+ if (!ext.equalsIgnoreCase("php") &&
+ !ext.equalsIgnoreCase("php3") &&
+ !ext.equalsIgnoreCase("php4") &&
+ !ext.equalsIgnoreCase("php5") &&
+ !ext.equalsIgnoreCase("phtml") &&
+ !ext.equalsIgnoreCase("inc")) {
+ updateStatus(PHPWizardMessages.getString("WizardPage.mustBePHP"));
return;
}
}