Someone in the quiz forum is having a problem becuase the quiz uses require('editlib.php'); in places, and this person does not have '.' in there include_path.
Which of the following statements is correct:
1. Not having '.' in the include path is an unsupported configuration for running Moodle.
2. All includes in Moodle must be ablolute includes, starting from $CFG->libdir, or $CFG->dirroot.
If 2, we need to update the coding guidelines.
That are many places with relative paths only - it means that developers expect '.' to be in include path.
Absolute paths must be used in libraries and functions. Quite ofte if you have edit.php and edit.html we are using relative paths, the dirname() might be better there.
I think the user should change PHP configuration now and we should try to use absolute paths properly in the future
Anyway if we change coding style we might hit some new problems with PHP compatibility in various operating systems. My +1 to fix only really broken includes in libraries and function and wait with the rest till 1.8 or 2.0.
Absolute paths must be used in libraries and functions. Quite ofte if you have edit.php and edit.html we are using relative paths, the dirname() might be better there.
I think the user should change PHP configuration now and we should try to use absolute paths properly in the future
Anyway if we change coding style we might hit some new problems with PHP compatibility in various operating systems. My +1 to fix only really broken includes in libraries and function and wait with the rest till 1.8 or 2.0.