From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 06:48 PM:
Can you grab a fresh copy from CVS and check again? The string namesite doesn't appear in any file in versions 1.4, 1.5 or HEAD.
If you're on a *nix system you could run the following command from the root moodle directory to find which file the string is located in:
grep namesite * -R
From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:25 PM:
Did you try to repro the bug? (A clean new install) After some point this starts to work and then the bug can't be reproed anymore. Only just after the install.
I just verified this to happen on the latest CVS with the tag MOODLE_15_STABLE.
You're right, the string namesite doesn't appear on the files. But look at /course/editsection.php, line 50:
$sectionname = get_string(name$course->format);
The course format in my case is site. Naturally this string, namesite, can't be found as it's not in the /lang/en/moodle.php, as the grep verified. I also noticed that I had Show news items and Show topic section set for the site course.
At some point this starts to work, meaning that the course format changes to something else (social and so on). Investigating this a bit more...
From Samuli Karevaara (samuli.karevaara at lamk.fi) Friday, 3 June 2005, 07:38 PM:
(More detailed) steps to reproduce on Moodle 1.5 beta:
- empty the database completely
- go to moodle site, click through all the Upgrading database... screens
- enter default values for everything else but change Include topic section to Yes
- enter the required fields for admin
- go to edit the topic section for the site.
With me the [[namesite]] thing comes all the time.
From Shane Elliott (shane at pukunui.com) Friday, 3 June 2005, 10:47 PM:
Thanks for that. Fix now in CVS - editsection.php