From fe57308175e355f33ad6a7b9ebed094e94277518 Mon Sep 17 00:00:00 2001 From: khartlage Date: Mon, 19 Jul 2004 19:31:01 +0000 Subject: [PATCH 1/1] allowed more extension in php file wizard --- .../phpeclipse/wizards/PHPFileWizardPage.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java index bedcf2c..c931b92 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/wizards/PHPFileWizardPage.java @@ -163,8 +163,13 @@ public class PHPFileWizardPage extends WizardPage { 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; } } -- 1.7.1