|
[
Permalink
| « Hide
]
Michael Blake added a comment - 06/Jan/09 01:54 PM
Dongsheng, please review this patch.
Michael Blake made changes - 06/Jan/09 01:54 PM
Dongsheng Cai committed 2 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 06/Jan/09 03:52 PM
Dongsheng Cai committed 2 files to 'Moodle CVS' - 06/Jan/09 03:52 PM
Verified, and patched, thanks Jason.
Dongsheng Cai made changes - 06/Jan/09 03:53 PM
I have no idea what this setting is, and the help text does not explain it to me.
Having looked at the code, I can now see, and 50 seems like a stupidly large default. Surely the default should be 0, meaning no limit. (Since this is now in the admin tree, the existing isset logic in course/lib.php is no longer any good.) Also, if I was doing this, I would probably have fixed the name to be maxcategorydepth, so it followed the coding guidelines, even though that would have been a bigger change. Rant over. Jason, do you want to come up with an improved patch?
Tim Hunt made changes - 07/Jan/09 11:53 AM
A new patch fixed the bugs Tim found out.
Dongsheng Cai made changes - 07/Jan/09 02:24 PM
isset($CFG->maxcategorydepth) && ($CFG->maxcategorydepth != 0)
would be better as !empty($CFG->maxcategorydepth) And sitemaxcategorydepthhelp - Oh, just noticed, all the other strings like this are called something like configsitemaxcategorydepth, anyway - I think This specifies the maximum depth of nested categories shown when courses are listed on teh site front page. Also, in the admin setting, the '0' option needs to be displayed as 'Unlimited' instead of 0.
Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 07/Jan/09 04:04 PM
Thanks Tim.
I attached a new patch here.
Dongsheng Cai made changes - 08/Jan/09 04:55 PM
martignoni committed 1 file to 'Lang CVS' - 11/Jan/09 05:36 PM
Dongsheng Cai committed 3 files to 'Moodle CVS' on branch 'MOODLE_19_STABLE' - 14/Jan/09 01:47 PM
Dongsheng Cai committed 3 files to 'Moodle CVS' - 14/Jan/09 01:48 PM
committed, please review, thanks
Dongsheng Cai made changes - 14/Jan/09 01:48 PM
Tim Hunt made changes - 20/Jan/09 01:28 PM
martignoni committed 1 file to 'Lang CVS' - 23/Jan/09 06:12 AM
This is just my $0.02 on this: once a naming convention is suggested, it is probably a good idea to stick to it, as the change from the first patch to the second actually creates a regression for anyone who has implemented the first patch.
Note the underscores and lack thereof:
Thanks! |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||