Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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