Skip to content

Instantly share code, notes, and snippets.

@martinmev
Created November 27, 2011 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinmev/1397560 to your computer and use it in GitHub Desktop.
Save martinmev/1397560 to your computer and use it in GitHub Desktop.
Patch for OnlinePHP-IDE (online-php.com): It removes the message box ' is not a common textual file type'
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