|
Petr Skoda made changes - 15/Sep/07 05:17 PM
Petr Skoda committed 1 file to 'Moodle CVS' - 15/Sep/07 05:29 PM
Petr Skoda committed 1 file to 'Moodle CVS' on branch 'MOODLE_18_STABLE' - 15/Sep/07 05:31 PM
Petr Skoda made changes - 15/Sep/07 05:38 PM
Thanks Petr for your quick response! Having the patch in so quickly is really appreciated
I agree with using the x_once() approach since one never knows when it might have already been included, especially with plugins and class definitions. Along this line, I was wondering if Moodle has a coding preference to write includes/requires as statements or as functions. So: require_once 'path/to/file'; or require_once('path/to/file'); Cheers and thanks again Petr! there is no official way - though most ppl use the function style calls
ACK! Good patch - wonder how that got in there without anyone realising.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CCing Martín, please file a new issue if other improvements needed, feel free to revert the commit
thanks for the report and patch