Sory, I haven't been able to test that change because that installation was irreversibly damaged, the file database was corupted and I have to install it again. I will reinstall that instance and testthe plugin with the modification.
Here is the link: http://casagrande.inro.ro/
That error Too many open files in ... apeard after messing with activation and desactivation of the plugins.