Patch for OnlinePHP-IDE (online-php.com): It removes the message box ' is not a common textual file type'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/www/php-ide/js/ide_bottom_script.js b/www/php-ide/js/ide_bottom_script.js | |
--- a/www/php-ide/js/ide_bottom_script.js | |
+++ b/www/php-ide/js/ide_bottom_script.js | |
@@ -256,9 +256,6 @@ function open_file(file) { | |
'py', 'inc', 'txt', 'htaccess', 'htpassword', 'sql', 'xml', 'conf']; | |
if (typeof file != 'string') file = file.toString(); | |
- if (!file.match(new RegExp('\\.(' + allow_extension.join('|') + ')$'), 'g')) { | |
- alert(file + ' is not a common textual file type'); | |
- } else { | |
// check if the file is in the right panel | |
if (!file_is_in_right_panel(file)) { | |
@@ -267,7 +264,7 @@ function open_file(file) { | |
} | |
// switch to the file | |
switch_to_file(file); | |
- } | |
+ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment