diff options
-rwxr-xr-x | usr/local/www/edit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index e8a1949..186bc38 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -36,11 +36,11 @@ if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) { fclose($fd); $edit_area=""; $loadmsg = "Loaded text from " . $_POST['savetopath']; - if(stristr($_POST['savetopath'], ".php" == true) + if(stristr($_POST['savetopath'], ".php") == true) $language = "php"; - else if(stristr($_POST['savetopath'], ".sh" == true) + else if(stristr($_POST['savetopath'], ".sh") == true) $language = "php"; - else if(stristr($_POST['savetopath'], ".xml" == true) + else if(stristr($_POST['savetopath'], ".xml") == true) $language = "xml"; } else if (($_POST['submit'] == "Save")) { conf_mount_rw(); |