Compare commits

..

1775 Commits

Author SHA1 Message Date
moodler c54b5d6ebc Bumping to 1.5.3 for IMMINENT RELEASE. REALLY!! 2005-11-17 07:25:25 +00:00
moodler 9851f4d091 Added Petr's code for some checking for the insecure situation of
- register_globals = on  and
  - magic_quotes_gpc = off

with slight rewording changes

SC 193
2005-11-17 07:10:51 +00:00
moodler b2a1bc9fc9 Checked in Petr Skoda's fix for SC189.
It worked for us!
2005-11-17 06:44:10 +00:00
moodler 630d7b7b4d JUst tidying up layout ... functionally the same 2005-11-17 06:38:17 +00:00
mjollnir_ 25c741d659 Fixing misnamed variable in forgot password link in login block 2005-11-17 02:30:17 +00:00
mjollnir_ 50d7a3a52e Pulling in a missing global CFG in datalib:execute_sql (affects CFG->dblogerror) 2005-11-17 02:26:49 +00:00
stronk7 38271961ae Now courses are viewable by idnumber. Credits to Paolo Oprandi.
(http://moodle.org/mod/forum/discuss.php?d=18442)
2005-11-16 23:20:08 +00:00
stronk7 4a2aeccb2b Some typos solved. :-| 2005-11-16 23:03:34 +00:00
skodak c5431f8858 Fixed bug #4038 encoding problems when grading 2005-11-16 22:54:30 +00:00
stronk7 4ac66d6105 Updated a bit to explain how the multilang filter works. 2005-11-16 19:50:36 +00:00
skodak 901ba3c01d added basic validation of jump parameter 2005-11-16 16:44:39 +00:00
skodak 7a12269386 quoting type 2005-11-16 16:33:45 +00:00
skodak 8dc163f571 cleaning of parameter name before use SC#188 2005-11-16 15:20:57 +00:00
mjollnir_ 5609431181 Another fix to the perf printing patch from earlier. I didn't realise that 'no' in the context of perf means 7 ;) 2005-11-16 02:11:52 +00:00
mjollnir_ 9661a67c66 Fixing merging problem in the quiz report fix ealier - disabling wrong checkbox for site course quizes 2005-11-16 01:37:08 +00:00
skodak 0582eb58c8 no page flip after fastgrade saving, allow hiding of grade or comment column when fastgrading, do not update db when no changes in fastgrade 2005-11-15 23:43:52 +00:00
skodak 2055e78fe2 removed ugly/dangerous hack assert_var_set() 2005-11-15 23:37:17 +00:00
skodak c635c9c087 PARAM_BOOL now detects on and off values 2005-11-15 23:20:59 +00:00
mjollnir_ d50bb68692 Fixing bug 4303 - quiz reports dying on large enrolments - getting all users into an array and imploding it into an IN() replaced with joins. This changes the functionality SLIGHTLY in two ways - 1. show students with no attempts now JUST shows students with no attempts, rather than both. Show students with no attempts is now disabled for the site course as is not really relevant and could be ridiculously large 2005-11-15 22:07:39 +00:00
patrickslee 498ef90f7b More restrictions on enrol/unenrol of meta courses. Thanks to Bug #4057 2005-11-15 21:53:39 +00:00
skodak ace9977578 cleaning of parameter name before use SC#188 2005-11-15 21:47:18 +00:00
skodak c8a38c86ce Bug #4049 - Gradebook: Category names with a dot in them don't work correctly 2005-11-15 21:40:18 +00:00
mjollnir_ 9c9d5ae18f Better logic for printing perf info in the footer - should be distinct from the validation stuff 2005-11-15 21:32:30 +00:00
mjollnir_ 8df570f284 Fixing up the missing perfdebug string in admin, turning perf on in the default footer using $CFG->perfdebug 2005-11-15 21:21:53 +00:00
mjollnir_ 23eb2bbc57 Fixing typo in 1.5.3 release notes s/plugi/plugin/ 2005-11-15 21:19:11 +00:00
skodak 83fa1948c2 XSS prevention in older PHP versions SC#190 2005-11-15 18:20:15 +00:00
stronk7 feb3dff674 Clarify a bit one item. 2005-11-15 08:47:57 +00:00
martinlanghoff 61da36a863 153 release notes done -- bonus commit with hidden roll-of-honour 2005-11-15 07:21:24 +00:00
martinlanghoff ebb8f1b45c work-in-progress 153 release notes -- added notes about the commits from the last 2~3 days 2005-11-15 07:19:05 +00:00
martinlanghoff 580427eb72 work-in-progress 153 release notes -- part 3 2005-11-15 07:03:38 +00:00
martinlanghoff 952b4986c4 work-in-progress 153 release notes -- part 2 2005-11-15 06:22:04 +00:00
martinlanghoff 220dfe69ad work-in-progress 153 release notes 2005-11-15 05:47:46 +00:00
patrickslee 5f7baedd19 Added an IE specific rule in layout CSS to prevent command icons hidden behind HTMLArea generated tables
When inserting table in HTMLArea, if the table is set to align to left or right, IE will make the table float so the command button will be hidden behind it.

So a IE specific rule is added in layout CSS to set command buttons clear on both side. This will apply to all themes based on the standard layout. And other browsers are not affected/needed.
2005-11-15 02:58:30 +00:00
skodak bab2c5b8ce added register_globals off as recommended setting 2005-11-14 22:57:03 +00:00
skodak 51028ee868 add GLOBALS overwrite protection and improved magic_quotes_gpc hack SC#191, SC#184, SC#92 2005-11-14 22:43:48 +00:00
defacer 83cd002a8e Eloy's unchecked_vars admin page. 2005-11-14 16:21:41 +00:00
defacer 8de0b6879e Patching the patch, should be good now! 2005-11-14 16:15:40 +00:00
defacer def35d35d7 Eloy's detect_unchecked_vars patch, slightly modified. See SC#184. 2005-11-14 16:06:40 +00:00
mjollnir_ a7db9eb28e Merged from HEAD: fixing bug 4244: rss client block long titles and broken editing link. Partly backporting daryls fix, part my own fix 2005-11-14 02:35:56 +00:00
mjollnir_ ed2de86926 (delayed) merge from HEAD: fixing bug#4199 2005-11-14 02:30:49 +00:00
skodak 6c7bfbc7af temporary fix for XSS SC#189 2005-11-14 00:11:15 +00:00
mjollnir_ 122b18f02f Getting directory sizes with du - use escapeshellarg on the file/directory as unzipping files on the server can result in filenames that need escaping 2005-11-13 21:19:05 +00:00
urs_hunkler 953727c4c8 changed to unix file format. 2005-11-13 17:23:06 +00:00
urs_hunkler f54b9b94de changed $CFG-theme to current_theme() to make the theme working as course or session theme, see Bug #4315 2005-11-13 17:05:58 +00:00
defacer 2ac8f379c3 Merging all my latest changes and fixes from HEAD related to SC#187. 2005-11-13 04:53:47 +00:00
defacer a945eab2c2 Merging from HEAD:
Now get_sql_sort can be called static-function-imitation style as well.
Necessary to solve SC#187 gracefully.
2005-11-13 04:45:23 +00:00
defacer 14c3063dcc Merging my latest commits from HEAD, which include:
Fixing XHTML stuff
Skodak's patch from SC#187 without the HACK ALERT part

The "Next" buttons in grading windows don't get you where you 'd
expect right now, but please see SC#187 before doing anything about it.
2005-11-13 03:50:28 +00:00
martinlanghoff aa910f60b0 Display warning when magic_quotes_gpc=off _and_ register_globals=on -- tidyup wordwrap and center it proper. 2005-11-12 05:30:23 +00:00
martinlanghoff 2193242b48 Display warning when magic_quotes_gpc=off _and_ register_globals=on 2005-11-12 05:25:39 +00:00
defacer c10ac049cc Better retrieval of table sortorder when not done directly through
the table class, see SC#187.
2005-11-12 03:01:05 +00:00
gbateson 9ee129e4dd adjust relative URLs in <SCRIPT> tags; use ClueCaption as text on clue buttons (hitherto it was always set to "?") 2005-11-11 06:46:47 +00:00
skodak 0e3a277b02 fixed simple header bug #3406, patch submitted by samulik 2005-11-11 01:24:38 +00:00
skodak 6c10695f24 fixed loglive paging related bug #4116, patch submitted by samulik 2005-11-10 22:21:40 +00:00
skodak 26a6d6db3e fixed paging related bug #2715, based on patch submitted by samulik 2005-11-10 22:03:51 +00:00
skodak 8ab4f3001f fixed login block at http://site/index.php when secure forms on - bug #4305 2005-11-10 21:40:10 +00:00
patrickslee b5ec2ec12f Fixed a misspelling in help index 2005-11-10 20:46:05 +00:00
patrickslee afb39ad0c4 Added contextual help for meta course 2005-11-10 20:40:56 +00:00
skodak 53ec9ce362 typo bug #4308 2005-11-10 10:17:33 +00:00
moodler 932e5b4a69 Bump for imminent 1.5.3 2005-11-10 08:18:16 +00:00
moodler 722d5c0378 Upgraded to ADOdb 4.66. All the tests on my local server went fine,
so I hope nothing unexpected surfaces before 1.5.3.  Please test!
2005-11-10 08:04:35 +00:00
patrickslee 4caea37161 Converted forum help index file to linux line breaks 2005-11-10 03:26:56 +00:00
skodak 749de1c140 cleaning as assignment types SC#182 continued 2005-11-10 00:20:57 +00:00
skodak 259502e542 cleaning as assignment types SC#182 2005-11-10 00:14:01 +00:00
skodak ab68c36639 fixed incorrect assignment grades in gradebook when custom scales bug #4279 2005-11-09 22:38:26 +00:00
skodak 3e403b7950 fixed grades display in assignment/index.php when using different scales 2005-11-09 22:24:11 +00:00
skodak 977f038738 fixed grading when secure forms on bug #4300 2005-11-09 21:35:46 +00:00
thepurpleblob 18320d9331 Uneccessary call to build category list that was grinding systems to a
halt with large numbers of categories.
2005-11-09 16:11:54 +00:00
stronk7 41e5c5abc5 Split line into two separated commands to allow people with
chmod disabled to run backup/restore code. Credits go to
Grigory Rubtsov. Bug 4299.
(http://moodle.org/bugs/bug.php?op=show&bugid=4299)
2005-11-08 19:31:19 +00:00
moodler 9a75e63326 Undoing accidental change 2005-11-08 05:13:07 +00:00
moodler 8993348790 Resource summary is no longer preceded with newline. Suggested by Grigory Rubtsov
(grb at sentence dot ru) - Bug 4275
2005-11-08 03:07:28 +00:00
moodler 2917dfb9dc Added check to avoid notices when trying to get grades from an assignment
that didn't have any grades yet.    bug 4287

Also, using datalib function to create LIMIT statement when displaying
submissions
2005-11-08 01:44:49 +00:00
moodler a68d660a45 fix for bug 4278 2005-11-07 09:18:34 +00:00
moodler ae93996398 fix for bug 4284 2005-11-07 05:45:30 +00:00
martinlanghoff 186288dea5 user/edit: Better error handling when loading auth libs.
Check with empty() to avoid casting the string to int, and provide
useful info in the debug log.
2005-11-07 00:44:21 +00:00
martinlanghoff e7cfc5325f auth/ldap: Better warnings and handling of updaging multi-source LDAP fields
+ Raise a warning if the auth_ldap_get_entries for one user record
   returns more than one record (!?)
 + Resolved some subtle bugs when updating a remote LDAP repo from user
   updates. The logic is now simpler too.
 + Simplified the code that compares old/new values
2005-11-07 00:38:23 +00:00
stronk7 f5d2ef9543 Now both empty search strings and 1 letter search strings works fine in
the glossary. Terms are hilighted properly (but 1 letter terms, because
it's a hilight limitation). Bug 4274.
(http://moodle.org/bugs/bug.php?op=show&bugid=4274)
2005-11-06 20:00:22 +00:00
skodak 8bb94c53eb fixed bug 3532 - canceling of activity movement thanks to jcodina 2005-11-05 22:05:23 +00:00
skodak c2d8cd210f messaging - fixed page encoding in headers 2005-11-05 10:45:58 +00:00
skodak b60d39b96e fixed bug #4030 - filemtime for time modified 2005-11-04 11:29:14 +00:00
skodak d9ac8ca2e0 fixed choose disappearing after file delete 2005-11-04 10:53:41 +00:00
thepurpleblob b87c2adc76 Brought in line with HEAD version to get rid of data_submitted() function.
A bit of HTML cleaning up too. Fixes incompatibility with secureforms.
2005-11-04 10:04:04 +00:00
skodak 4483596d79 fixed encoding of page title of framed resources 2005-11-04 09:55:46 +00:00
moodler 7d255d1602 More notices fixed 2005-11-04 06:49:20 +00:00
moodler 2eb607bedb Fixed a number of bugs:
- zero grade vs no grade now works, no grade is stored as -1 in database
  - student modification time was being updated by teacher in quickgrade
  - sundry notices
2005-11-04 06:40:12 +00:00
moodler 15422ee0c2 fixes bug #4268 2005-11-04 06:22:47 +00:00
skodak b17e29b38e fixed input validation in admin and formating+cleaning in diff and editing SC#160 2005-11-03 23:38:51 +00:00
moodler 5ee8a752c4 Widened the window a bit more, bug #4146 2005-11-03 09:38:36 +00:00
moodler 38cdb67293 Fixing up the assignment grading interface to make it more usable.
- grade buttons are now links
  - popup window has teacher comments at the top
  - popup window can now cycle through all users without leaving the window
  - new quickgrading feature to grade inline in one go
  - can choose page size
2005-11-03 06:19:29 +00:00
moodler 912127a158 Standard menus can now be part of tabindex sequences for keyboard accessibility 2005-11-03 05:01:31 +00:00
michaelpenne 42521dbff4 Added some content to the help file. 2005-11-02 20:38:54 +00:00
patrickslee f7d818d5c5 Fixed a wrong call to add_teacher in LDAP plugin 2005-11-02 20:34:00 +00:00
skodak 11889a8466 Fixed course searching with quotes - SC#180 - minor related fix 2005-11-02 15:40:59 +00:00
skodak e0dbbecedb Fixed course searching with quotes - SC#180 2005-11-02 15:25:38 +00:00
moodler bc7e72c9b3 Adding group mode and visibility buttons to assignment!!! 2005-11-02 03:59:20 +00:00
mjollnir_ f253e2575f Fixing warning in course import (part of bug 4199) 2005-11-02 02:25:45 +00:00
stronk7 71deda82fe Changed one call to gethostbyaddr() to use numeric
ip instead. Such information is only stored in DB
(page->author) and not critical at all. Suggested
by Derry in http://moodle.org/mod/forum/discuss.php?d=32171
because it was causing important delays when clients
weren't DNS-registered.
2005-11-01 17:45:26 +00:00
skodak f6ce611ce4 fixed access rights of creators during restore SC#177 2005-11-01 17:23:21 +00:00
skodak 682a3999d7 fixed course ID and quoting of the search string SC#179; typo :-( 2005-11-01 15:56:32 +00:00
skodak 393abfad48 fixed course ID and quoting of the search string SC#179 2005-11-01 15:53:17 +00:00
moodler 78a2e3d249 Show the right path with REQUEST_URI 2005-11-01 06:52:51 +00:00
skodak 398f365cb8 fixed warnings and param cleaning, prevention of mailing of empty reports SC#147 2005-10-31 22:48:04 +00:00
martinlanghoff 985cd79efa Updated the definition of 'member' for AD - thanks to I?aki for the tip! 2005-10-31 22:43:44 +00:00
skodak 6d306766c9 fixed slashing of javascript strings SC#174 2005-10-31 22:12:06 +00:00
skodak 164099fd14 merged cleaning of array params from HEAD 2005-10-31 22:10:09 +00:00
patrickslee df7f761f53 Block normal users to gain access to meta courses 2005-10-31 20:31:57 +00:00
skodak 25340ceab1 fixed warnings/errors in latest PHP versions 2005-10-30 22:14:03 +00:00
patrickslee 46dc437f66 Reverting commits just made. They are not intended to be in MOODLE_15_STABLE 2005-10-30 22:05:30 +00:00
patrickslee 80fc4f88be DB upgrade script to clean up enrol field for user_students and user_teachers 2005-10-30 21:36:19 +00:00
skodak f0a73113d5 fixed sql quoting SC#145 2005-10-29 21:52:01 +00:00
skodak 3fca3da072 fixed cleaning before editing SC#163 2005-10-29 21:38:39 +00:00
skodak 239f82915a fixed caching + cleanup in format_text() SC#172 2005-10-29 21:30:29 +00:00
skodak c637903591 fixed script parameters + some warnings SC#150 2005-10-29 16:40:54 +00:00
skodak e85a6623a1 fix for preferred_width_xx initialization SC#169 2005-10-29 16:33:19 +00:00
skodak f25f387188 cleaning of parameter, initialized variable SC#168 2005-10-29 16:15:22 +00:00
ikawhero c56218c8ce Question numbers in the header were in the incorrect order when downloading
results as an Excel spreadsheet.
2005-10-28 03:30:11 +00:00
ikawhero 4d64df82cb Missing language file copied over from HEAD 2005-10-28 03:10:43 +00:00
patrickslee 5ec4333086 Fixed dis-ordered displaying for quiz overview report when no soring is specified 2005-10-28 02:12:45 +00:00
patrickslee e89b542b1b Fixed a mis-usage (typo?) of get_admin() in paypal module 2005-10-27 02:20:11 +00:00
patrickslee 88fb90e9b4 Added default argument value for grade_category_select() to prevent error when calling without arguments 2005-10-26 22:28:26 +00:00
mjollnir_ 5ed1a6d692 Now the login block uses the same logic for forgot password as the login page does 2005-10-26 21:18:41 +00:00
defacer 8b68aaf1f6 Merging from HEAD:
Fixing all incoming parameters when editing course groups as per SC#171.
2005-10-26 13:49:06 +00:00
defacer b7535a6e23 Merging from HEAD:
A slight improvement for my last edit, which could trigger a small bug.

I should go out and drink more often, it helps debugging! ;-)
2005-10-25 01:56:37 +00:00
defacer bf617f07a6 Merging from HEAD:
Fix for bug 3794:

Times in chat messages are now displayed correctly to all users, with each
user's timezone and DST status taken into account.
2005-10-24 17:31:40 +00:00
defacer 34225def25 Merging from HEAD:
Fix for bug 4203:

When adding recurring events, if the event title contained an apostrophe
then only the first event of the series would get created. Tricky bad
interaction with add_to_log, the reporter for this should get a prize. ;-)
2005-10-24 17:15:30 +00:00
julmis faf8922009 Fixing Bug #4201, cursor movement on IE. 2005-10-24 14:11:30 +00:00
moodler 0232fdd58c Use notify instead of error() 2005-10-23 16:02:23 +00:00
stronk7 5e41163054 Methods aren't static due to the Typo3 structure. 2005-10-22 16:15:21 +00:00
urs_hunkler 070515ce42 I reworked the timer JavaScript and the CSS properties. The floating of
the timer now works in MSIE, Firefox and Opera the same way. The first correction was not sufficient.
2005-10-22 15:29:05 +00:00
defacer f77efbe3be Fix for bug 4127:
In the course participants page, selecting an initials filter in one course
and then moving to another (the filter would propagate) could result in few
or no results being displayed. The teacher would then have no way of
resetting the filter and viewing all (or possibly any) participants.

Fixed by making each course participant page independent. They no longer
share sort orders, collapsed column state, or initials filters.
2005-10-21 01:13:56 +00:00
defacer 74d60e20ba Fix for bug 4143:
If a user was a teacher, they didn't see any events from courses
where they were students.

I 'm back at looooooong last! :)
2005-10-21 00:26:06 +00:00
thepurpleblob 7770beee55 & should have been &amp; (of course) 2005-10-20 07:58:09 +00:00
mjollnir_ 96bf2d385f Fixing bug 4199: import course data should only allow you to import from a course that you're already a teacher in, unless you're at least a creator 2005-10-20 00:19:24 +00:00
thepurpleblob 9a94d087a8 Strange missing parameter - bug #4121 2005-10-19 05:41:44 +00:00
martinlanghoff 1ff64b7f60 If wwwroot is unset, log something before dying 2005-10-18 03:28:20 +00:00
stronk7 e72c81ab82 Initial commit of Typo3 charset libraries and Moodle's textlib.class code. 2005-10-17 15:37:42 +00:00
stronk7 abcd6d503e Fixed one important bug in restore of gradebook that was
preventing it to finish in a lot of situations.
(http://moodle.org/mod/forum/discuss.php?d=31461)
2005-10-16 11:30:33 +00:00
stronk7 f784666c93 Solve some wrong CVS Id tags 2005-10-15 10:37:01 +00:00
stronk7 44de4fd8a8 Updated to 2.4 Final. From notes: This resolve a lots of bad formated archive errors. 2005-10-15 09:57:18 +00:00
michaelpenne cd60a00cf9 Removed a notice warning when lessons are created in a course with no category (eg: home page) 2005-10-14 19:26:21 +00:00
patrickslee 2382dae103 On a rare case courses will have duplicate sections those have the same id. Added some code to re-order sections if this is found when moving sections 2005-10-14 03:10:21 +00:00
skodak e5df73c53e quick fix for the problems with p() and s() - SC#167 2005-10-13 20:09:54 +00:00
paca70 3cd3c343ea Updates 2005-10-13 10:27:05 +00:00
paca70 8dfbb77f3c Update 2005-10-13 08:36:33 +00:00
stronk7 282f2e5b22 SC#162 2005-10-12 19:24:30 +00:00
mjollnir_ 04c9c465f9 Execute some updates silently (dropping non existent columns in workshop) bug 2964 2005-10-12 02:15:23 +00:00
patrickslee 763f3766a8 Fixed various bugs in add_teacher() those caused the function not populating record correctly 2005-10-10 21:39:43 +00:00
skodak 4bcb6f1043 fixed parameter use SC#157 2005-10-09 19:49:47 +00:00
skodak 82329ca01e fixed indent - SC#158 2005-10-09 19:38:57 +00:00
skodak ae4f432615 missing semicolon 2005-10-09 18:28:30 +00:00
skodak 8e5cde5461 better input validation - SC#165 2005-10-09 07:09:26 +00:00
michaelpenne cb5c5a1bfe Reverted grading back to 1.4.X for when custom scoring is turned OFF 2005-10-07 20:34:27 +00:00
stronk7 70156ee3d4 Typo. Bug 3917. Credits for liling! B-)
(http://moodle.org/bugs/bug.php?op=show&bugid=3917)
2005-10-06 17:37:58 +00:00
stronk7 0715864e36 Now hidden courses are showed dimmed in the restore process. Bug 4152.
(http://moodle.org/bugs/bug.php?op=show&bugid=4152)
2005-10-06 17:20:58 +00:00
martinlanghoff 2cf2079188 Fix for bug 3141 - Can't update external data with LDAP authentication 2005-10-06 02:23:40 +00:00
martinlanghoff 67149b4d2c Fix for bug 3992 - LDAP password including a quote does not work - credits go to Kita 2005-10-06 02:18:16 +00:00
stronk7 01ce0aa3a8 Now entries containing apostrophes can be exported to main glossay
and deleted without problems. Bug 4136.
(http://moodle.org/bugs/bug.php?op=show&bugid=4136)
2005-10-05 18:23:25 +00:00
mudrd8mz 50c9c95ea6 Merged from HEAD 2005-10-05 11:23:51 +00:00
mudrd8mz 60f08f5ccc file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-10-05 11:23:51 +0000 2005-10-05 10:58:08 +00:00
mudrd8mz a55a4c8c31 Merged from HEAD 2005-10-05 07:50:10 +00:00
mjollnir_ dde5cbbdfd Fixing the mass migrate postgres upgrade to be silent in quiz. Added a fix to a previous rename table that breaks pg_dump & pg_restore (incorrectly named sequence) 2005-10-05 01:35:14 +00:00
mjollnir_ 38f78e158c Fixing sortorder typo 2005-10-04 21:26:01 +00:00
dhawes 24f9eb47b1 backported to 1.5 stable from HEAD - bugfix for bug 3980 2005-10-03 14:15:57 +00:00
patrickslee dd7a3aaedf Improved number rounding for grades fix 2005-10-02 21:57:53 +00:00
gustav_delius b483d8c81e fixed a help button 2005-10-01 13:36:06 +00:00
mindforge 1eff1e081c Changed the review 'scores' option to also take effect on the standard feedback displayed at the bottom of a question. 2005-10-01 11:07:15 +00:00
julmis 1d9b22c497 Adding charset to header 2005-10-01 00:46:28 +00:00
julmis 38453bb238 Adding gz_handler for a bit faster loading time. 2005-10-01 00:05:12 +00:00
mjollnir_ 70f6f8b708 Much better namespace collision fix to apacheloguser thing 2005-09-29 23:39:52 +00:00
mjollnir_ 98f052303f Fixing up the log apache user patch from the otherday - problem with variable scope 2005-09-29 21:53:48 +00:00
stronk7 66fd3fb7ff Modified clone() method to work better under PHP 4. Credit goes to Julian. 2005-09-29 16:36:02 +00:00
mindforge 7b838d2a97 Fixed addslashes and stripslashes of responses. Now slashes are stripped in quiz_extract_responses, leading to an improvement in grading (before " a man's world" would have been graded as "a man\'s world").
In order for the responses to be written to the database correctly the function quiz_save_question_sessions adds slashes again before writing the data to the database (and before passing it to the questiontype method save_session_and_responses) and strips them again after all the work is done, thus leaving the responses fields unmodified for the subsequent code.

An additional benefit of this change is that answer fields that are automatically filled after a submit don't get more and more slashes added (e.g. ' used to become \' after the first and \\\' after the second commit).
2005-09-29 11:06:47 +00:00
patrickslee 1f508431dd Removed a block of redundant code in participants list 2005-09-29 01:40:12 +00:00
mjollnir_ 85508791a6 Adding default for new config option pathtodu. Related to bug 4107 2005-09-29 00:34:25 +00:00
mindforge 494b416d7b Fixed two minor bugs in the random questiontype. 2005-09-28 22:39:26 +00:00
mindforge e56820d225 Added code to delete records from quiz_newest_states when a quiz instance is deleted. 2005-09-28 22:35:54 +00:00
michaelpenne 1d44f3a5d7 Fixed errors in logic and lack of isteacher() check as pointed out by Petr Skoda 2005-09-27 17:27:05 +00:00
adamtpaw 0b32d159da update Moodle 1.5 2005-09-27 13:27:58 +00:00
adamtpaw 0674d7ba48 Update for Moodle 1.5 2005-09-27 13:16:54 +00:00
adamtpaw 9ee425fa14 update for Moodle 1.5 2005-09-27 13:10:51 +00:00
mjollnir_ 73ec9fb26e Logging apache user now takes into account loginas 2005-09-27 05:24:43 +00:00
mindforge db504824f8 A better fix for bug #4110 and the previous one undone. 2005-09-26 12:31:23 +00:00
mindforge 8bcbac0126 Possible fix for bug #4110. 2005-09-26 11:22:08 +00:00
mindforge b4d2ebf952 Improved dispaly of correct answers in the calculated questiontype. 2005-09-26 09:24:45 +00:00
mindforge f9bec1f2e7 Another improvement on regrading. The code thought that grading for a question changed if the grade was like 1/3. The precision in the database is different than the newly calculated grade, so now we round both values to 5 decimal places, which should fix this problem. 2005-09-26 09:18:22 +00:00
mindforge 72d09c0a5a Improved regrading (raw_grades were compared in order to determine whether the grading of a question changed, now grade is used, which also catches if penalties are turned on/off in the quiz settings) 2005-09-26 09:14:33 +00:00
mindforge 254fdebbc9 Silenced notices produced by flush() and ob_flush() in regrading code. 2005-09-26 09:10:52 +00:00
mindforge b5ee139f78 Little fix in the grading logic (this should only have affected numerical questions with mre than one answer as can be used in cloze). 2005-09-25 21:03:12 +00:00
skodak 184e03b294 new session timeout handling 2005-09-23 18:28:15 +00:00
moodler 76c4cabbfe Removed error() from a place that was actually being called from workshop_cron
and thus stopping cron sometimes.

Also some code layout cleanup
2005-09-23 09:23:00 +00:00
mjollnir_ 681d95c495 Backported Martin's sortorder fix from HEAD. Apparently this is a better fix than the one from a few days ago 2005-09-23 04:33:47 +00:00
martinlanghoff a6349a6d1f courses/sortorder: syntax fix to cope with bad sortorder values 2005-09-22 03:12:14 +00:00
stronk7 4a9f162f17 <span> tags are now allowed inside post->subject. Bug 4099.
(http://moodle.org/bugs/bug.php?op=show&bugid=4099)
2005-09-21 21:27:11 +00:00
urs_hunkler 03f6e19c61 Added CSS properties for Firefox for fixed placement of the timer. It is a preliminarily fix. Please follow Bug #4053. 2005-09-21 14:15:15 +00:00
gbateson 577bd6a9f2 renumbered steps 1,2,3,3,4 => 1,2,3,4,5
signalled steps 3 and 4 as not required for Moodle 1.5 and later
2005-09-21 00:31:52 +00:00
stronk7 cbb0dd34d9 Now the ALL link in the paging bar is under the
glossary->showall setting control. Bug 4072.
(http://moodle.org/bugs/bug.php?op=show&bugid=4072)
2005-09-20 16:59:29 +00:00
gbateson 7fc7e9645f removed XSS hole caused by "urldecode" 2005-09-20 11:57:53 +00:00
julmis d27162c0cd XSS fix
- added optional_param for id
2005-09-20 08:55:58 +00:00
bobopinna b455078417 Fixed a problem 2005-09-20 06:43:26 +00:00
skodak d994263946 fixed IE and https problems 2005-09-19 17:09:06 +00:00
patrickslee 290c1e61cc Added some number rounding for grades to prevent PostgreSQL errors 2005-09-19 00:09:25 +00:00
patrickslee f89c3674bb Corrected some table/field names 2005-09-19 00:07:57 +00:00
dlnsk e8ca86ffb7 *** empty log message *** 2005-09-17 17:41:10 +00:00
gustav_delius 8b0d0c1756 Fix for bug 3995 2005-09-17 13:03:24 +00:00
gustav_delius 9111a763bd Fix for bug 4019 and some other XHTML issues 2005-09-17 12:28:38 +00:00
gustav_delius d00c2e2310 Fixed bug 4052 2005-09-17 12:00:20 +00:00
martinlanghoff 085366cfa0 auth/ldap fix typo - thanks to Skodak for spotting it! 2005-09-16 23:29:26 +00:00
mindforge e2823d208a As discussed in the thread http://moodle.org/mod/forum/discuss.php?d=30628 (and others) the limitation to 10 answers in a question is problematic for some users.
From this commit onwards match, multichoice and shortanswer questiontypes will
(a) display all defined answers (e.g. from an import with more than 10 answers) and
(b) to always display at least one empty answer field.
2005-09-16 10:06:58 +00:00
thepurpleblob 1a87ac6a6c Fixed problem with courseid not being passed. 2005-09-16 10:02:42 +00:00
thepurpleblob d40177d7a2 Taken check for too many answers out. Julian has fixed the edit screens. 2005-09-16 09:46:02 +00:00
thepurpleblob a9a26d5a45 Added string for 'importmaxerror' 2005-09-16 09:34:58 +00:00
thepurpleblob 89aa5d49ee Maximum number of answers now governed by constant in locallib.php not
by hardcoded value.
2005-09-16 09:30:54 +00:00
mindforge a4df55c815 Small fix to the previous commit (< becomes <=). 2005-09-16 09:24:50 +00:00
mindforge a67c2e0a33 As discussed in the thread http://moodle.org/mod/forum/discuss.php?d=30628 (and others) the limitation to 10 answers in a question is problematic for some users. I modified the match questiontype to (a) display all defined answers (e.g. from an import with more than 10 answers) and (b) to always display one additional empty answer field. 2005-09-16 09:12:25 +00:00
gustav_delius 435241d385 Fixed bug 4077 2005-09-16 07:26:48 +00:00
moodler 7de8f45ae9 Merged from head 2005-09-16 02:25:59 +00:00
gbateson 9086a17e15 fixed "hotpot_print_recent_activity to use "hp=" instead of "id=" in links to attempted quizzes 2005-09-16 00:43:44 +00:00
gbateson 60bdcfa990 new version number: 2.0.9 2005-09-16 00:30:56 +00:00
gbateson efd7fc31b9 fixed "hotpot_print_recent_mod_activity" to use "hp=" instead of "id=" in link to recent attempted quiz 2005-09-16 00:22:37 +00:00
mindforge 14be3fe259 Added dropdown to allow sorting the question list on the quiz editing page in different ways. This also allows defining a custom sortorder in the URL. 2005-09-14 11:09:32 +00:00
ikawhero cdf5d7b047 Incorrect value being passed to header function. 2005-09-14 07:20:47 +00:00
mjollnir_ 5d8323d57c Login block should be more discerning about offering signup link. Fixed to be more in line with the login page 2005-09-13 22:21:20 +00:00
thepurpleblob 1122563591 Check if html editor is enabled before checking htmleditor setting from screen.
Removes notice if editor not in use (therefore field  was not displayed)
2005-09-13 13:49:27 +00:00
julmis d0491a1fef Faster version check for Gecko and work-a-round for "No IDN" problem. 2005-09-13 11:49:40 +00:00
martignoni e687c5421c Merge from HEAD 2005-09-13 09:41:57 +00:00
martignoni 6ae7fca715 Merge form HEAD 2005-09-13 09:40:30 +00:00
skodak 919a058edb formal RFC151 compliance 2005-09-12 18:43:49 +00:00
stronk7 65b2ea05b1 Added support for new styles in chat window. 2005-09-11 10:01:22 +00:00
urs_hunkler 4a75fb028c Eloy added hooks to the chat mes frame. I adde the basic CSS properties and values for colors and positioning to the "Modules: Chat" sections of the two CSS files. Update 1.5 too. 2005-09-11 06:15:18 +00:00
stronk7 bcfdf5f0e6 Extended theme support to the chat window. Bug 3376.
(http://moodle.org/bugs/bug.php?op=show&bugid=3376)
2005-09-10 22:51:38 +00:00
adamtpaw 84fdfffb13 Polish version for Moodle 1.5 STABLE 2005-09-10 20:47:43 +00:00
moodler 7b9f8f652b JUst a bump because it's been a while. 2005-09-10 14:38:52 +00:00
stronk7 43ea696c77 Now both p() and s() respect html entities. 2005-09-10 10:59:19 +00:00
martignoni 1ba6745de0 file removepages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 2d1880e449 file wikitype.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 1817713a44 file strippages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 3679ac38b7 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 29a71fa1d0 file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni ec22a2b3bb file mods.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni c6188b29ef file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 0be47a3364 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 7d0b581589 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 6a5ef2899e file wikiname.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 710f3399df file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
martignoni 0cf2d8903d file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-09 20:41:13 +00:00
moodler 93bcfb18a8 iAdded some CSS for blocks config editing bug 4045 2005-09-09 16:51:29 +00:00
mindforge c99e2d2c66 Changed use of htmlspecialchars() to s(). 2005-09-09 16:47:33 +00:00
moodler 6549d34a38 Addition CSS id, merged from head 2005-09-09 16:24:41 +00:00
moodler 4498b48aee Don't diaplay zero dates at all in user reports 2005-09-09 16:15:20 +00:00
moodler 769ffdfdca Don't calculate date when it's zero 2005-09-09 16:01:04 +00:00
skodak d16b5bb763 new handling of session timeouts - part 1 2005-09-09 15:12:42 +00:00
paca70 fddbea82ac To get rid of some cosmetic (hopefully) error messages. 2005-09-09 11:29:11 +00:00
skodak 17e941b48a reverting previous patch - see http://moodle.org/mod/forum/discuss.php?d=26970 2005-09-09 11:08:41 +00:00
paca70 7aaabae78e Corrected some typos and mistakes 2005-09-09 10:42:08 +00:00
gbateson e0a53b4d0a removed line which was crippling quizzes with HTML in questions or answers
added check to detect when no grades were returned in the database
2005-09-09 01:03:10 +00:00
martinlanghoff 59b5352b51 auth/ldap: fixed typo in auth_user_activate() - bug #3594 - thanks to ze @ nbox.org 2005-09-09 00:25:50 +00:00
mjollnir_ 1068ba8d27 Much more sophisticated IP address cleansing 2005-09-08 23:04:10 +00:00
mjollnir_ d9ab06ca32 Merged from HEAD: Fix to bug 4026 and 3913. Credit: jjg7 at humboldt dot edu 2005-09-08 21:31:41 +00:00
mindforge 7ece83dec6 Fixed an unreported bug. 2005-09-08 18:00:53 +00:00
martinlanghoff 68dfdae36e Fix for bug 4031 -- fix typo 2005-09-07 23:23:08 +00:00
martinlanghoff fce45181d7 Fix for bug 4031 -- stupid mistake of using get_record_select() when I mean get_record() - see the bug entry for more details 2005-09-07 22:48:48 +00:00
mjollnir_ 4e9cc4842f Performance fix: in postgres, sometimes indexes are not used because of type casting. block_instance.pageid is a big int field so the index wasn't being used. Wrapping in '' prevents the typecast. See http://www.postgresql.org/docs/7.4/interactive/datatype.html#DATATYPE-INT for more information 2005-09-07 22:00:16 +00:00
adamtpaw a072684a96 Moodle 1.5.2 -nowe pliki pomocy 2005-09-07 19:20:24 +00:00
adamtpaw 7505cd1cd2 Moodle 1.5.2 2005-09-07 19:14:29 +00:00
stronk7 b12e186c04 Some RSS readers seems to have problems with that wrong p tag. 2005-09-07 17:06:25 +00:00
mindforge 9fe710159f Fix for the issue described in http://moodle.org/mod/forum/discuss.php?d=30192 2005-09-07 13:59:28 +00:00
martignoni 74971fdad9 file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 62ade7827c file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 9d7dde3c97 file checklinks.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 73292a8393 file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
martignoni 637c9cd330 file index.html was added on branch MOODLE_15_STABLE on 2005-09-13 09:41:57 +0000 2005-09-07 09:51:35 +00:00
adamtpaw 2b4090c4fe POlska wersja dla Moodle 1.5.2 - niekompletna, ale prace trwaja. 2005-09-07 06:56:27 +00:00
martinlanghoff dc2a68b4d7 enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - should fix things for good. 2005-09-07 06:36:32 +00:00
martinlanghoff 0aff0bf622 Fix for bug 4011 -- a MySQL specific workaround did not work with database names with hyphens, and broke the whole plugin for other databases. This patch fixes both issues. 2005-09-07 06:03:53 +00:00
mjollnir_ 72ed1089dd Further tidyup to the cleanremoteaddr function I added - some thing were getting through 2005-09-07 04:45:52 +00:00
mjollnir_ e1fede4e63 Better fix to the messaging problem. Will make mysql <4 users happy too. Credit for php workaround:Eloy 2005-09-07 04:43:05 +00:00
patrickslee fe18e430f7 Finally the *correct* fix for the looping problem. Thanks to Penny 2005-09-07 04:22:03 +00:00
martinlanghoff 6cd6568f84 make_categories_list(): initialize variables correctly to cover up for broken call convention. Passing unset variables by ref to be populated is a BAD idea. Do The Right Thing and Return your function output or there'll be no dessert for you. 2005-09-06 22:24:31 +00:00
patrickslee 6fcc3fab2c The report_session_error() fix does not work all the times. Proper fix here. 2005-09-06 22:15:42 +00:00
mjollnir_ fa1ce50ec8 Backing out a previous patch of mine - bad merge with our local copy 2005-09-06 21:23:09 +00:00
patrickslee 67ba380ec9 Fixed a rare problem that report_session_error() causes a redirection loop 2005-09-05 23:46:08 +00:00
stronk7 e42b787931 Avoid empty or unlinkable activity names. 2005-09-05 22:33:07 +00:00
moodler f21b4c1c2b Silent header (no errors) 2005-09-05 16:33:30 +00:00
moodler 235089d15f Removed blank line 2005-09-05 16:29:38 +00:00
moodler fa27bb7c22 Including lib.php to make default for forumtracking work 2005-09-05 05:31:49 +00:00
mjollnir_ 926a759c71 Performance fix for get_directory_size: new config option for path to du - if we have it, use that instead. MUCH faster on directories with a lot of files 2005-09-05 05:30:53 +00:00
mjollnir_ c11d468cc1 Fixing up a bug in the log selector to do with optionally showing all users in the dropdown when over COURSE_MAX_USERS_PER_DROPDOWN 2005-09-04 21:07:23 +00:00
moodler 9e525f53b3 Some new files 2005-09-03 07:51:57 +00:00
moodler 2099bab6a0 Merged latest copies from HEAD 2005-09-03 07:51:06 +00:00
julmis 57a1c1af6a Fixing array_change_key_case errors.
- Function present in version PHP 4 >= 4.2.0, PHP 5
2005-09-02 07:50:28 +00:00
martinlanghoff a705afc7da auth/ldap - sync_users script bugfix x2: it was deleting fields that were not supposed to be synched to ldap and it was failing to set auth_forcepasswordchange 2005-09-02 06:55:28 +00:00
martinlanghoff f159f93bc7 enrol/ldap - fix course auto-creation to work with the new blocks infrastructure. doh! (thanks penny!) 2005-09-02 06:50:11 +00:00
martinlanghoff 8ade954b60 auth - bugfixes: update_userinfo() did not truncate values, and did not have proper errorhandling; user creatiwas passing an id to set_user_preference when we wanted an object 2005-09-02 06:42:33 +00:00
martinlanghoff e1a3a68059 forums/trackreads: Small optimizations to forum_tp_can_track_forums() 2005-09-02 06:36:39 +00:00
martinlanghoff 63b8c597f6 forums/trackreads: Postgres-optimized query - from many minutes to a few milliseconds 2005-09-02 06:30:24 +00:00
mjollnir_ c6a37a3185 Add an index where we really need it - block_instance.pagetype 2005-09-02 04:58:57 +00:00
stronk7 73d68a033d Strip control chars from being sent to the XML file.
Only tab, newline and return are allowed in XML 1.0.
This feature is controlled by $CFG->backup_strip_controlchars.

Please, test it!
2005-09-02 00:01:22 +00:00
mjollnir_ 18c26f97ef Fixing bug 3977: sort of. Check for mysql >= 4 or postgres, do a smarter query with a UNION. Otherwise, do the same old query. This is not very good for mysql 3.23 users with large datasets, but not much else I can do. 2005-08-31 23:57:37 +00:00
mjollnir_ e2629fc12d Preventing another warning. In some cases in the calendar blocks, resource filtering gets called with no courseid 2005-08-31 06:13:13 +00:00
martinlanghoff d5e5544448 auth/db: Better support for utf-8 user data. 2005-08-31 05:59:31 +00:00
mjollnir_ c3a70f83b1 Avoid a warning when displaying multichoice quiz questions 2005-08-31 05:24:17 +00:00
mjollnir_ f2179d4688 prevent stuff being sent to the browser before config.php being included 2005-08-31 02:29:52 +00:00
bobopinna 0ba7a5cab6 First working release 2005-08-30 11:47:21 +00:00
bobopinna 8d351c3e92 Fixed a bud with next and prev sco search 2005-08-30 11:46:38 +00:00
moodler b109aa6efa Fix for bug 3958 and google overactivity 2005-08-30 09:34:42 +00:00
mindforge f40cc4a843 Fix for bug #3986 2005-08-30 08:50:09 +00:00
defacer 0be62652d1 Merging from HEAD:
Fix for bug 3981 (also quite lively discussed at
http://moodle.org/mod/forum/discuss.php?d=29564):

When the user was not logged in and was not a guest, DST compensation was not
being done. I guess deciding to store the computationally expensive DST cache
in $USER was a major oops on my part. I 've moved everything to $SESSION and
now it works as it should.
2005-08-30 03:31:17 +00:00
michaelpenne 71c47913a0 FIXED: Removed Notice Warning. Sometimes an attempt's answerid field is not set because the answer that the student entered does not match any of the answers for the question. This error comes up for Numerical and Short answer question types. 2005-08-29 22:06:55 +00:00
michaelpenne 66fbb3b10f FIXED: Bug with reporting numerical question types. 2005-08-29 19:45:23 +00:00
paca70 5578e1bd26 New files and correction from Mikko NUrminen and others.
Thanks all
2005-08-29 15:43:47 +00:00
gustav_delius 9122a1e62d Fix for missing action icons, reported in http://moodle.org/mod/forum/discuss.php?d=28466#139179 2005-08-26 20:46:57 +00:00
thepurpleblob 26996407cb Suppress some 'missing course object' messages, and fix bug #3899 2005-08-26 11:58:34 +00:00
thepurpleblob 55fdf029ab Import now passes $course object to import/export format object. 2005-08-26 11:33:08 +00:00
gustav_delius e45b5f24d4 Fixed bug 3950 2005-08-26 08:53:13 +00:00
gustav_delius c5c3568d89 fix for bug 3953 provided by Jean-Michel 2005-08-26 07:56:54 +00:00
martinlanghoff 8e0b42fb88 enrolment fixes: We now have better handling of the enrol field when dealing with student enrolments. This fixes bugs 3912 and 3974. NOTE that enrol_student() now defaults to manual - this is to support the different pages that call enrol_student() to still work correctly when external enrolments are in use, by recording the enrolments as manual. Enrolment plugins are expected to know better and pass the correct parameter. 2005-08-26 06:07:42 +00:00
mjollnir_ 8ba12d576a Escape strings for database. SC # 145 2005-08-26 05:28:55 +00:00
mjollnir_ 9f65fc2b27 Fixing typo in call to get_record that was causing a lot of noise in the db error log 2005-08-26 04:53:24 +00:00
mjollnir_ 12c40a2f66 Backticks are not postgres friendly! :( 2005-08-26 04:41:33 +00:00
martinlanghoff 9595bf588a enrol/ldap - fixed default objectclass, and we can now bind non-anonymously 2005-08-26 04:09:41 +00:00
martinlanghoff 8a9e5ac327 Long-pending rollback_sql() 2005-08-26 03:57:30 +00:00
julmis 4d20567f61 Adding escapeshellarg to aspell path 2005-08-25 07:44:05 +00:00
julmis 399d7b3acb Adding escapeshellarg to aspell path. 2005-08-25 07:43:21 +00:00
martinlanghoff 2a069aa1f2 auth/ldap: Fixed handling of multi-source field mapping. Now fields with non-empty values have precedence over empty fields, regardless of order. Fields will be set to empty only if all ldap source fields are empty. 2005-08-25 04:56:13 +00:00
mjollnir_ 289cf90737 Fixing another postgres problem. With distinct, you can't order by a field not in the select field list 2005-08-25 00:02:49 +00:00
mjollnir_ cef4a0e828 Fixing typo in postgres-fixing patch from a couple days ago 2005-08-24 23:47:51 +00:00
patrickslee bd22fdfbdb Wrong parameter order in function definition 2005-08-24 23:05:23 +00:00
defacer dc9ec4e135 Merging from HEAD:
Changing some hardwired 1s to SITEID. Is the madness ever going to end?
Use 1 as a magic number in code, pay the price...

I think I also improved the security around there.
2005-08-23 20:47:34 +00:00
defacer 4dde75c7d7 Merging from HEAD:
Repeat events are now created correctly even if the DST change boundary
is crossed between repeats.
2005-08-23 20:08:21 +00:00
mjollnir_ 65ebc47636 Backticks are NOT ALLOWED in postgres! 2005-08-23 06:46:35 +00:00
mjollnir_ 5747bf91e5 Fixing metacourses to work in mysql 3.23 series. At same time, set enrolment type to 'metacourse' so as not to break some external enrolment (eg ldap) plugins 2005-08-23 05:33:12 +00:00
defacer 398b3a2b83 Two things:
Mergin bugfix from HEAD:
Site events were being created for $course->id = 1 even when SITEID != 1.

And also:
Allow <span> in event titles, someone may be using multilang there.
2005-08-23 02:48:11 +00:00
moodler 514c862489 Fixed some code formatting while passing through 2005-08-21 15:41:03 +00:00
moodler c8ef1ce0f6 Fix for nasty data corruption bug 3915 2005-08-21 15:40:11 +00:00
mjollnir_ 7e61008580 Clean up IP addresses from getremoteaddr. Otherwise we sometimes get weird results from proxies and inserts into mdl_log and mdl_user fail 2005-08-18 01:44:10 +00:00
martinlanghoff e2d7747f10 Blocks upgrade - reduce memory consumption by a few GB and (postgres only) halve database traffic. 2005-08-18 00:01:39 +00:00
mjollnir_ 05746e64f2 Fixing a postgres error. You can't sort by a field that isn't in the select list when you have distinct 2005-08-17 23:16:34 +00:00
martinlanghoff c53889ff42 LDAP servers being down or unavailable should not prevent login - we now fail with a notice() rather than with an error() 2005-08-17 22:35:45 +00:00
moodler 1a6649ec70 file quiz_responses.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 69c0d07455 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler d205e11ef2 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 301d3a4509 file grades.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 7f45789999 file timezones.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 84c0444376 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
moodler 9547937448 file currencies.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-08-17 13:37:53 +00:00
thepurpleblob bbeffa6ff8 Whoops - forgot to remove (commented out at least) debugging code. 2005-08-17 10:34:54 +00:00
thepurpleblob 64fdd835fb For changing password, default change password was selected rather than
for the auth method actually used by the user.
2005-08-17 10:31:46 +00:00
thepurpleblob 6a239dbe87 Call to clear force change password flag passed $user object rather
than user id, so it would never be cleared.
2005-08-17 10:27:50 +00:00
mindforge d67775e55a Fixed bug #3884. 2005-08-16 12:43:34 +00:00
martinlanghoff 42fd23bc3a Unset the changepassword flag for the _right_ user, even if we are masquerading an account 2005-08-16 03:19:38 +00:00
martinlanghoff 29ad8bfe68 Tell insert record we don't care about inserted id 2005-08-16 00:42:42 +00:00
martinlanghoff 8b7291eff5 Fixed DOS newlines. 2005-08-15 23:21:40 +00:00
patrickslee a3c092c96d Mass cleanup of bad postgres upgrade scripts 2005-08-15 22:30:47 +00:00
martinlanghoff 0b7c884132 Enable reset password functinoality for LDAP and other external auth mechanisms as promised in the auth config page 2005-08-15 22:27:47 +00:00
mindforge cf0371143c Enabling $options->correct_responses for multianswer questions. I.e. highlighting of correct answers can now be turned off. 2005-08-15 11:48:57 +00:00
mindforge d3a126d9c0 Fix for the bug described in the discussions http://moodle.org/mod/forum/discuss.php?d=26526 and http://moodle.org/mod/forum/discuss.php?d=27274 2005-08-15 11:36:43 +00:00
danmarsden 9bb1bdbc9c Fixes for Bug #3876, Bug #3816 2005-08-14 21:56:16 +00:00
moodler 744da696ef Renamed mkdir to makedir to help some high-security blockers 2005-08-14 02:26:13 +00:00
moodler 347b01bcd9 Merged 1.6 version into 1.5 because bugs were fixed 2005-08-13 16:43:45 +00:00
moodler 9c23c88ee6 Merging from HEAD 2005-08-13 16:34:14 +00:00
martinlanghoff 812fe4c5fc Temp table now matches idnumber length with username - thanks to Yves Roy for pointing this out. 2005-08-12 02:30:30 +00:00
martinlanghoff fe1acc35e7 Fix calls to enrol_student() and add_teacher() where nulls were being passed erroneously - credits to jeff graham 2005-08-12 01:47:56 +00:00
patrickslee 83847ae5b1 Fixed a serious bug in table_column() that modified column not having NOT NULL for postgres 2005-08-11 23:50:13 +00:00
martinlanghoff 4fd1373c7e Fix for small syntax error that was hiding debug info from an error msg. #3527 - Credits to cangussu@gmail.com 2005-08-11 23:01:12 +00:00
martinlanghoff 44944d8466 Fix for using dn as idnumber - thanks fo Jeff Graham - http://moodle.org/mod/forum/discuss.php?d=28840 2005-08-11 22:42:46 +00:00
mjollnir_ 04f1658794 When fetching child courses for a metacourse, order by shortname (unless just counting) 2005-08-11 04:24:15 +00:00
mjollnir_ e14b9cd27c Changing the js timer in quiz to call the form by name rather than index. People who have forms in the headers (ie logout buttons) run into problems otherwise 2005-08-11 03:38:08 +00:00
urs_hunkler 6412c0b872 added ".mod-quiz " to three properties because the quiz style was in conflict with other Moodle pages. 2005-08-10 20:39:15 +00:00
martinlanghoff d3af23581d Added the missing $userold, now detecting updates (and pushing them out to LDAP) should work. 2005-08-10 05:34:08 +00:00
patrickslee 80729b01d0 Fixed a bug in postgres block upgrade script messing up with block ids 2005-08-10 05:28:46 +00:00
moodler 8bc776ba4f Slightly mkore reobust in the case where https was already being used
for the whole site.      bug 3848
2005-08-09 15:14:49 +00:00
mjollnir_ 4eb27d4a74 Fixing another group by postgres error. You can't put fields into the select that aren't in the group by unless they're functions like max 2005-08-09 04:50:02 +00:00
bobopinna 494538afb3 Fixed include path for xml2array.class.php 2005-08-08 08:37:55 +00:00
michaelpenne eab678f193 Fixed Bug #3652 - Gradebook catagory detail group view not working. 2005-08-04 22:08:08 +00:00
dhawes 40c61f1f01 merging in fix for bug 3478 2005-08-04 02:24:17 +00:00
stronk7 14f03b6f8b Now forum-start tracking,
forum-mark read and
    forum-prune post
log actions are restored properly.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 19:49:19 +00:00
stronk7 d65d9f925d Now course-guest, user-login and user-logout
log actions are restored properly.
Plus some problem with double &amp; entities solved.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 19:02:00 +00:00
stronk7 623b5e548d Now chat-talk log actions are restored properly.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)
2005-08-03 18:27:46 +00:00
patrickslee 8585ef8726 Removed/added/moved redundant/missing/misplaced page headers/footers 2005-08-03 00:09:33 +00:00
mjollnir_ 14f872baec Postgres doesn't happily convert NULL to 0 for int fields, so we set it manually. Credit: Patrick Li 2005-08-02 22:47:57 +00:00
mjollnir_ 84325f54bd Adding a length limit to input field in line with db field size 2005-08-02 22:39:49 +00:00
mindforge c735b8fe65 Copied a bugfix from 1.6 that hadn't been synchronized. Fixes bug #3804 2005-08-02 13:32:19 +00:00
ethem f358efc1f4 file postgres7.sql was added on branch MOODLE_15_STABLE on 2005-12-02 11:45:36 +0000 2005-08-02 08:23:52 +00:00
patrickslee f899b4a6d3 Fixed postgres structure problem as in http://moodle.org/mod/forum/discuss.php?d=28077 2005-08-02 04:08:37 +00:00
moodler 5cdb11e46f Implemented accessibiility fix bug 3662 2005-08-01 16:49:32 +00:00
moodler f82b708d08 Merged from HEAD. Not used in STABLE, but doesn't hurt to have them 2005-08-01 08:51:38 +00:00
moodler f9e95ccfbc file lib.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-08-01 08:49:33 +00:00
moodler 088e28666f Added sso hook (not used by anything but helps some hacking) 2005-08-01 08:39:09 +00:00
moodler 29d550cc82 Added original word as title to the blacked-out version. This is because
the filter can obscure actual important words by mistake (eg Dickens)
and there needs to be some way to recover the meaning.
2005-07-30 08:54:43 +00:00
moodler 43ba708ecc Bug 3800, affected large backups 2005-07-29 16:57:24 +00:00
stronk7 553ba0a568 file moodlelogo-med-white.gif was added on branch MOODLE_15_STABLE on 2005-11-28 20:22:07 +0000 2005-07-29 15:47:46 +00:00
moodler 28dee4658e file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-07-29 14:26:04 +00:00
moodler 4681fd95fe file login.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-07-29 08:06:01 +00:00
moodler bf4a11dd4b file expired.php was added on branch MOODLE_15_STABLE on 2005-08-01 08:51:38 +0000 2005-07-29 08:06:01 +00:00
urs_hunkler 303117213e merged from 1.6 2005-07-29 07:15:06 +00:00
urs_hunkler e23430c180 Enlarged the font-size of the calender popup and added the styles to gray out hidden sections on the course page.
My font tag hack to avoid that old font tags overwrite the styles killed all font formating in the resources written with HTML Editor. The Editor formats font sizes with font tags. It also makes pages failing the XHTML tests. Is really no other Editor out?
2005-07-27 19:42:29 +00:00
gustav_delius 87e29596d5 fix for bug 3822 provided by razzor 2005-07-27 17:19:20 +00:00
urs_hunkler c82f9b36bf changed the autolink style from a transparent background to light orange background and an orange underline. 2005-07-26 15:45:41 +00:00
mudrd8mz 4967ac0df4 file enrolperiod.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
mudrd8mz 78d5bf65c8 file coursehiddensections.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
mudrd8mz 572ac6f799 file courseidnumber.html was added on branch MOODLE_15_STABLE on 2005-10-05 07:50:10 +0000 2005-07-26 08:35:45 +00:00
bobopinna fffc5d6351 Fixed a bug in reaching masteryscore (score are float) 2005-07-26 06:32:47 +00:00
bobopinna 12801f73f7 Fixed a problem in AICC course tracking 2005-07-26 06:18:23 +00:00
bobopinna 97a305e3b2 Fixed a bug in masteryscore evaluation 2005-07-26 06:15:33 +00:00
michaelpenne d9ef8ddef6 removed a condition in an if statement that does not belong. This is another part of the fix for this forum post: http://moodle.org/mod/forum/discuss.php?d=27908 2005-07-25 18:50:39 +00:00
gustav_delius a8181107eb Fix for question numbering provided by razzor, bug 3807 2005-07-25 14:16:36 +00:00
moodler 68bdb2856a Also support language files in install/lang (but just for installation) 2005-07-25 11:25:05 +00:00
stronk7 1fa4ec0345 Escaping some double quotes I added recently... :-(
Merged from HEAD
2005-07-25 09:58:27 +00:00
moodler f7da20c95c On site level, don't bother checking course->guest etc 2005-07-25 09:03:17 +00:00
stronk7 3bd148acbc Now message forum RSS Feeds are using the category. Useful under
some RSS agregators able to group messages.
Credits go to Dmitry Pupinin.
Bug 3654
(http://moodle.org/bugs/bug.php?op=show&bugid=3654)
2005-07-24 23:07:29 +00:00
stronk7 e55407bfd4 Added support to RSS 2.0 categories. Credits go to Dmitry Pupinin.
Bug 3654
(http://moodle.org/bugs/bug.php?op=show&bugid=3654)
2005-07-24 23:02:36 +00:00
stronk7 81013d9eff Added the $Id$ tag 2005-07-24 10:27:29 +00:00
stronk7 bba72664cc Added $Id tag. 2005-07-24 10:01:40 +00:00
ikawhero c34efb3b8c Don't run the cleanup code if we are upgrading from a version that does
not already have an assignment type field. Bug 3801.
2005-07-23 10:49:50 +00:00
gustav_delius 890a6a5be3 The fixes for the item analysis plug-in that were assembled by Jean-Michel, see http://moodle.org/mod/forum/discuss.php?d=27553 2005-07-23 07:46:59 +00:00
defacer 3b80afab63 Fix for bug 3793:
Prevent warning message when configuring a glossary_random block in a
course which has no glossaries.
2005-07-23 00:52:47 +00:00
michaelpenne aef6766f3f Removed development code that accidentally got committed. Sorry. It appears the code was only in mod/lesson/view.php and lang/en/lesson.php 2005-07-22 22:01:54 +00:00
michaelpenne 3793147e59 removed some lang entries that do not belong 2005-07-22 21:58:43 +00:00
michaelpenne 128660712b removed some lang entries that do not belong 2005-07-22 21:46:47 +00:00
gustav_delius ffd834a5c2 Resetting the timout counter to avoid the timeouts reported at http://moodle.org/mod/forum/discuss.php?d=24790#129431 2005-07-22 20:40:31 +00:00
moodler d7387d3c3f Reverting bad version number to avoid errors (bug 3798) 2005-07-22 16:55:58 +00:00
ikawhero c2960fa279 file quiz_responses.php was added on branch MOODLE_15_STABLE on 2005-10-28 03:10:43 +0000 2005-07-22 11:41:11 +00:00
gustav_delius 3c4b7700e5 Improvements contributed by Jean-Michel Vedrine, see http://moodle.org/mod/forum/post.php?reply=130818.
- you can change # of attempts per page displayed on screen
- you can download results to Excel/text file, including detailed grades if you check this option.
2005-07-22 09:25:11 +00:00
moodler a3071d58ac Deleteing mistakenly-added currencies table from enrol_authorize 2005-07-22 07:25:49 +00:00
moodler a6c9107b45 Checked in fix for bad version from yesterday 2005-07-22 07:12:31 +00:00
moodler a698ecd735 Fixed dates 2005-07-22 07:04:27 +00:00
moodler 015eeaaccb Whoooooops! Fixing mistaken date from yesterday!!! 2005-07-22 07:03:04 +00:00
moodler 744d60e6bb Ethem made some mistakes here
- made some new tables and other changes for this module in STABLE

   - used a database to store language strings

   - made changes that required CORE changes in STABLE to work


I'm resetting this module to how it was in Moodle 1.5 ... Ethem if you
could reapply any FIXES only to this module then we can look at how to
add currencies properly in 1.6.
2005-07-22 06:57:54 +00:00
stronk7 691a3375a2 Now paging of older versions is showed and working properly. It was
really buggy! One string added to wiki lang file too. Bug 3750.
(http://moodle.org/bugs/bug.php?op=show&bugid=3750)
2005-07-21 23:38:07 +00:00
stronk7 ade1548ded Try to maintain user preferences synchronised between DB and $USER. 2005-07-21 18:46:42 +00:00
moodler d928302750 Use clone when copying this variable, just to be safe. 2005-07-21 16:43:30 +00:00
moodler 9bb3bc4e98 Run the online assignment cleanup code automatically on an upgrade. (SE) 2005-07-21 11:00:34 +00:00
moodler 6be6289f54 Fixes database errors from faulty Journal to Online Assignment upgrade code
from 1.4 to 1.5.1
Script can be run at any time.
(SE)
2005-07-21 10:59:29 +00:00
moodler 0f7f8271ba file oacleanup.php was added on branch MOODLE_15_STABLE on 2005-07-21 10:59:29 +0000 2005-07-21 10:28:30 +00:00
thepurpleblob ac00624f97 Fixed bug where path to exported file could be incorrect in non en languages. 2005-07-21 09:25:29 +00:00
thepurpleblob 96157e7986 Tidy up of import/export function layout to match coding standard 2005-07-21 08:48:48 +00:00
defacer b586f7cda2 All this time, table_column() didn't handle CHAR fields correctly! :o 2005-07-20 17:42:55 +00:00
moodler 7c109f7b2c file grades.php was added on branch MOODLE_15_STABLE on 2005-09-03 07:51:57 +0000 2005-07-20 17:29:29 +00:00
defacer 18e4e2d5c7 Fix for bug 3637:
Certain obscure cases of using PHP accelerators (probably has to do with
OS and PHP version as well, but it's not certain) caused an error to be
displayed when importing data from "local pagelib" files with "debug" turned
on. The error was bogus, but error() stopped the page from being displayed.

Thanks to James P. Dugal the from University of Louisiana at Lafayette for
identifying and helping to solve the problem!
2005-07-20 17:22:13 +00:00
moodler c94bf7e55a Whoops, forgot to check this in 2005-07-20 16:36:50 +00:00
thepurpleblob 486ca471fb Remove long answer check - does not seem to be requires as db field is 'text'
Fixed notices caused by uninitialised $question variable
2005-07-20 08:01:17 +00:00
moodler 1c36cd23bd Fixed paging on forum search 2005-07-20 06:42:02 +00:00
moodler 4452e1ace9 Fix for finding multi-line links in HTML code
Thanks German!  http://moodle.org/mod/forum/discuss.php?d=27630
2005-07-20 01:55:00 +00:00
defacer 309ed997b3 Slight "correctness" correction. 2005-07-19 23:43:42 +00:00
thepurpleblob 5c15bd839f Empty feedback array added for multiple choice questions, needed by underlying
quiz library.
Still some notices in this that need looking at
2005-07-19 07:59:16 +00:00
patrickslee 9021f8168a Fixed when $cm is NULL, postgres still reports error. From HEAD 2005-07-18 22:41:48 +00:00
ethem 1cfdb3c2c9 httpsrequired for credit card pages. 2005-07-18 17:12:18 +00:00
michaelpenne 6b8fdfd03e Fixed bug with displaying the gradebook when it is only set to show percent to students
as described here http://moodle.org/mod/forum/discuss.php?d=27521
thanks to Nikki Macfarlane for detailed info
2005-07-18 15:51:44 +00:00
ethem 4b4f3038e1 Merged updates from stable 2005-07-18 09:32:33 +00:00
martignoni 6a9c9a090b Merge from head 2005-07-16 13:10:15 +00:00
mindforge d4a87bc0a1 Synchronized with 1.6 version. 2005-07-16 11:17:19 +00:00
mindforge 5617a70288 Removed redundant ->order field from randomsamatch. 2005-07-16 11:13:43 +00:00
mindforge 08bdd05d61 Made sure that the answers are compared in the order they are provided by the question editor (ORDER BY id ASC), so that an asterisk can be used to catch any incorrect responses in order to provide feedback. 2005-07-16 10:47:39 +00:00
defacer 73b60981af Robustness check from Marko Korhonen (bug 3751):
Don't print a warning if $rss->items is empty.
2005-07-16 00:16:26 +00:00
moodler 9f02856794 Bump! 2005-07-15 19:55:02 +00:00
moodler 64a129a4f6 Checking in changed files. Wierd merge but files all look OK :-/ 2005-07-15 19:46:48 +00:00
moodler 7e6bc94ad2 This merge went wierd ... files with no diffs coming up as changed 2005-07-15 19:31:05 +00:00
moodler b498108933 Updates 2005-07-15 19:19:36 +00:00
moodler 472a880aac Merged updates from head 2005-07-15 18:50:16 +00:00
moodler d0f6d395cf Merged some changes from HEAD 2005-07-15 18:41:01 +00:00
moodler 5beaf7799d Added MP3 player 2005-07-15 18:40:04 +00:00
moodler 23d27ffd09 Added Andy's latest MP3 player (fixes the ID3 non-display problem) 2005-07-15 18:37:15 +00:00
moodler 6a0ecb49b9 Added release notes for 1.5.2 2005-07-15 18:22:58 +00:00
moodler 1989dfae9c Assignment is now a good citizen and will install new submodules nicely 2005-07-15 17:26:21 +00:00
moodler 1ef5fb3886 Added capability for Moodle to upgrade activity submodules automatically 2005-07-15 17:22:51 +00:00
moodler 78275891b4 Avoid using $USER->lastIP, to avoid wierd case problem with different db
http://moodle.org/mod/forum/discuss.php?d=18662
2005-07-15 16:30:02 +00:00
moodler 036110e055 Reduced fields for config_plugins from 255 to 100
http://moodle.org/mod/forum/discuss.php?d=26794#129389
2005-07-15 13:03:20 +00:00
stronk7 b7ab75c6bf Added .required to show some boxes properly. 2005-07-15 11:36:35 +00:00
stronk7 8886ee0942 Updated preventpassindb to work properly.
(sometimes db password wasn't being updated
to 'not cached' properly).
2005-07-15 11:11:08 +00:00
stronk7 5d789427fe Bump. Now signup page is 100% HTTPS if required. 2005-07-15 00:25:27 +00:00
stronk7 c11e28959d Bump. Now change password page is 100% HTTPS if required. 2005-07-15 00:16:30 +00:00
stronk7 87d7fdc584 Bump. Now forgot password page is 100% HTTPS if required. 2005-07-15 00:09:52 +00:00
ikawhero 0e48704206 Use absolute path name for include. Bug 3660. 2005-07-15 00:04:08 +00:00
stronk7 a4e53fb1f4 Added HTTPSPAGEREQUIRED support to some mail functions. 2005-07-15 00:00:07 +00:00
stronk7 5e7012bc32 Bump. Now login page is 100% HTTPS if required. 2005-07-14 22:52:48 +00:00
stronk7 8fdba9a133 Core changes finished. Now javascripts URLs support
HTTPSPAGEREQUIRED properly. Ready to start protecting pages.
2005-07-14 22:33:45 +00:00
stronk7 7facd141a8 Some minor changes in print_header() and page_id_and_class()
to dinamically support HTTPSPAGEREQUIRED pages.
2005-07-14 22:27:59 +00:00
stronk7 9c87a260b6 HTTPSPAGEREQUIRED and CFG->httpswwwroot added to
support 100% SSL pages.
2005-07-14 20:09:10 +00:00
urs_hunkler 8ae05f2387 fixed Bug #3529 - Round corners break slightly in a block with an optional title bar in edit mode. samuli's proposal was perfect. 2005-07-14 19:48:03 +00:00
stronk7 4de514f468 Add the httpsrequired() function to be 100% SSL in some pages. 2005-07-14 19:39:23 +00:00
urs_hunkler 5d87b5d826 added ".mod-scorm" before all properties to focus their action on the scorm module. Otherwise the properties can produce strange effects at other moodle pages. 2005-07-14 19:04:34 +00:00
urs_hunkler c6dd61eb2d reduced the lineheight of the links in the sideblock to the same size the text. 2005-07-14 18:01:51 +00:00
urs_hunkler b70ba1648d removed unused files 2005-07-14 16:32:06 +00:00
mindforge 83ba3e7007 Fixed a redundant use of ->order. 2005-07-14 16:26:54 +00:00
urs_hunkler 172d47a14c updated the theme. optimized it for display on pda and smartphone with the browser configured to rearange the page elements among each other. Tested on a Sony TH55 PDA with the NetFront browser. 2005-07-14 16:26:25 +00:00
moodler c54473ea39 Merged fix for bug 3181 from head 2005-07-14 16:01:23 +00:00
stronk7 191e4336d1 One help string corrected. 2005-07-14 15:43:28 +00:00
stronk7 2a0bb0af92 Interface for SC#106 2005-07-14 15:20:40 +00:00
stronk7 208af78ccd SC#106 2005-07-14 15:16:03 +00:00
mindforge 11cbf773ea Minor improvements to match and multianswer. 2005-07-14 12:04:55 +00:00
moodler 1ae1e84ec5 Allow Altavista in as guest too 2005-07-14 04:16:04 +00:00
moodler 4714df2e67 file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-14 02:38:11 +00:00
moodler 97d8cdf4f6 file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-14 02:38:11 +00:00
julmis f7a669d89c Do not intercept ctrl + v in gecko and let browser's own editor to handle it.
It's a bubblegum fix but partly takes care of pasting problem in Mozilla/Firefox
2005-07-13 20:52:12 +00:00
bobopinna f8a6a83698 The new xml parsing class 2005-07-13 20:13:45 +00:00
bobopinna 28a774b13e Fixed some manifest parsing problems and a structure display bug 2005-07-13 20:11:56 +00:00
gustav_delius 901d0f94a8 old version tried to use $CFG before loading config.php 2005-07-13 16:55:15 +00:00
moodler e80ca6fb8d Allow Babelfish in to translate 2005-07-13 16:40:48 +00:00
moodler b8b0f6dbe9 file regrading.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-13 16:25:42 +00:00
moodler 687a4c0557 file regrading.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-13 16:25:41 +00:00
moodler c322b22437 Allow userid to be left out when calling this page 2005-07-13 14:20:29 +00:00
mindforge be66bb9645 Fix for the multiple addslashes issue described in http://moodle.org/mod/forum/discuss.php?d=27171#128398 2005-07-13 12:43:41 +00:00
dlnsk b6c8102625 Added 2005-07-13 08:12:12 +00:00
michaelpenne 9aca363c1a Bug 3531 fixed 2005-07-12 23:09:47 +00:00
skodak 6bb0231b7b fixed up link when selecting 2005-07-12 19:26:59 +00:00
skodak acef19a1e7 fixed submission logging, email notification for online 2005-07-12 19:14:23 +00:00
skodak 42dc0e903b removed file pop-ups 2005-07-12 18:58:01 +00:00
skodak 14637fc14f removed file pop-ups 2 2005-07-12 18:51:45 +00:00
moodler 0b4362228b Gah, now it's fixed properly 2005-07-12 17:09:48 +00:00
moodler 9abb5a2390 file nattachments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-12 16:59:40 +00:00
moodler 003991588b file nattachments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-12 16:59:40 +00:00
skodak 7f8337032d removed file pop-ups 2005-07-12 15:36:08 +00:00
moodler c41a30806a Fixed my fix from earlier 2005-07-12 15:09:48 +00:00
skodak 54902ff056 fixed html emails 2005-07-12 14:35:29 +00:00
skodak 854e6f0b2c unset unmodified text fields SC#140 + popup fix 2005-07-12 13:06:56 +00:00
moodler 641649b051 FIxed bug 3383 ... intro texts no longer center-justified in standard 2005-07-12 12:40:00 +00:00
moodler bc6c0782e9 Fix for problem with lang names containing 8 Thanks Eloy 2005-07-12 12:26:55 +00:00
moodler 0ef1487687 Fix for bug 3736 2005-07-12 11:36:50 +00:00
moodler e1ace7dd20 Trim comment to remove extra space before using in Javascript statements 2005-07-12 09:48:42 +00:00
moodler 7e78d96097 Better yet, don't update student text at all 2005-07-12 09:03:29 +00:00
moodler 27619c6598 FIxed the problem with online assignments containing quotes 2005-07-12 09:00:27 +00:00
skodak 6ba567ac63 new parameter forcedownload 2005-07-12 08:01:59 +00:00
moodler 5bccb31ec7 Escaped text output during relinking, as per SC 139 2005-07-12 07:53:02 +00:00
moodler efed457566 Added escaping of possible raw HTML displayed to admins SC139 2005-07-12 07:42:43 +00:00
moodler f20d4d22e9 Journal is disabled by default on new installations 2005-07-12 07:10:41 +00:00
moodler e92893695d Corrected the journal -> Assignment upgrade!!! :-( 2005-07-12 06:56:22 +00:00
moodler fa19bf31ea file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-11 16:37:50 +00:00
moodler 5e816a727e file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-11 16:37:50 +00:00
gustav_delius ae89234a65 Undid some of Julian's changes that refer to a non-existent database field. 2005-07-11 14:20:42 +00:00
moodler 65c8ff4d85 file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-11 04:48:19 +00:00
moodler 8a699d416d file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-11 04:48:19 +00:00
skodak c1bf1d81a9 fixed resubmit logic and students can review their online assignment through file.php 2005-07-10 18:40:55 +00:00
skodak 0c2a8be918 fixed bug 3606, thanks Ilshat Fattakhov 2005-07-10 17:30:32 +00:00
moodler 0e5947dc2f file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:41 +0000 2005-07-10 15:27:08 +00:00
moodler 231765c8ba file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:38 +0000 2005-07-10 15:27:08 +00:00
mindforge fe97411051 Improved error message, again. 2005-07-10 12:53:19 +00:00
mindforge cdb21087da Fixed an error message that contained a reference to an old object. 2005-07-10 12:42:42 +00:00
stronk7 a74f39abcb The hardcode limit of 1000 was breaking long pages display in Moodle.
I've changed it to a variable limit depending of the page lenght. Bug 3039.
(http://moodle.org/bugs/bug.php?op=show&bugid=3039)
2005-07-09 16:39:46 +00:00
skodak 82ff36e758 fixed $posthtml - see bug#3868 2005-07-09 13:36:38 +00:00
moodler 1d68b9b631 file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:40 +0000 2005-07-09 13:09:37 +00:00
moodler 0c51f82bba file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:37 +0000 2005-07-09 13:09:36 +00:00
skodak eaf0b2d89f fixed grading bug#1517 and some other typos 2005-07-09 12:31:01 +00:00
skodak 47bd45c3f7 fixed 'AS' for PostgreSQL 2005-07-09 09:40:46 +00:00
skodak 0ab0450f92 fixed ';;' 2005-07-09 09:03:15 +00:00
skodak de59c77a9b fixed PostgreSQL warning 2005-07-09 08:21:54 +00:00
skodak 9e6091197b fixed s() p() for values false, number 0, and string '0'; '' from s() caused troubles in PostgreSQL 2005-07-09 07:12:41 +00:00
skodak ca478f374d fixed resubmit logic 2005-07-09 06:59:44 +00:00
moodler fe859633e8 file navigation.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 6e66067f5f file analysistable.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 2c5ed3d234 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 58314eeec4 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 7c789e82c1 file mediaplayers.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 75f8ac4310 file forceplugins.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler efda10c098 file index.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 86756eef37 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler 9ccba19a12 file outputformat.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
moodler b26eb35a28 file shownextquiz.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:46:14 +0000 2005-07-08 15:51:00 +00:00
mindforge 42c19f0e8d Fix for bug #3707. 2005-07-08 11:37:55 +00:00
mindforge c1b6ab8118 Fixed bug described in http://moodle.org/mod/forum/discuss.php?d=26880 (missing addslashes before DB insert). 2005-07-08 10:17:27 +00:00
stronk7 4027500f9d Updated to 1.5.1
Merged from HEAD
2005-07-08 08:17:13 +00:00
moodler 52bc379ce5 Added HR 2005-07-08 07:43:49 +00:00
moodler 11fe3a4d74 Change && to AND to help PostgreSQL 2005-07-08 07:40:57 +00:00
moodler 5f2099b846 Merged from HEAD 2005-07-08 07:32:09 +00:00
defacer df1cbe9f48 Three improvements:
1. $nomoodlecookie = true. I just found out about this undocumented(?) hack(?)
   in lib/setup.php which is the perfect way to suppress some warnings. We
   don't need a session cookie for the chatd.

2. If allow_call_time_pass_reference is Off, socket_getpeername can't work.

3. Suppress "call time pass by reference is deprecated" messages for
   socket_getpeername, we don't have any choice here.
2005-07-08 03:50:30 +00:00
gustav_delius a26a0e25dd A better fix for bug 3520 2005-07-08 00:14:13 +00:00
stronk7 1ab72c8499 Latest changed applied.
Merged from HEAD (for 1.5.1)
2005-07-07 22:43:37 +00:00
gustav_delius 4fad07671c Fixed bug 3520 2005-07-07 18:07:09 +00:00
moodler 2e6e9b8bdb Updated release to 1.5.1 2005-07-07 17:42:30 +00:00
moodler ec96bbc3e9 Added new files from HEAD 2005-07-07 17:38:15 +00:00
moodler 1e41ee920e Adding new files from HEAD 2005-07-07 16:14:38 +00:00
moodler 1ede1981b8 Added new files from HEAD 2005-07-07 16:00:50 +00:00
moodler 437a4bf65b New files from HEAD 2005-07-07 15:59:09 +00:00
moodler 2f495119f9 Updated from stable 2005-07-07 15:57:38 +00:00
moodler d00727cc52 Added from HEAD 2005-07-07 15:57:12 +00:00
moodler f0c3da1e7e Updates copied from HEAD 2005-07-07 15:49:51 +00:00
moodler 798488d5ff file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:40 +0000 2005-07-07 15:40:17 +00:00
moodler 16c346df93 file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-15 19:45:37 +0000 2005-07-07 15:40:16 +00:00
gustav_delius f29752571b Added another 'continue' (or 'close this window') button towards the top of the review page, as requested in bug 3695 2005-07-07 14:53:15 +00:00
gustav_delius 73f25e0fca removed php notice 2005-07-07 14:51:54 +00:00
gustav_delius d404868d2b Quiz title and attempt number are now shown on one line as requested in bug 3696 2005-07-07 14:39:30 +00:00
gustav_delius b974afac9c Can now delete answers in multiple choice questions, fixing bug 3707 2005-07-07 14:19:55 +00:00
moodler c9ab45220c file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-07 08:58:29 +00:00
moodler e9bd42a226 file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-07 08:58:29 +00:00
moodler c3e7db99f9 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:29:55 +0000 2005-07-07 08:37:13 +00:00
moodler 83fade0c0a file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:29:55 +0000 2005-07-07 08:37:13 +00:00
moodler 004b18ddb1 Merged changes from HEAD 2005-07-07 06:32:55 +00:00
gustav_delius c5a48a8908 There was a bug when a student reattempted a quiz based on a previous attempt that was already correct. Now fixed. 2005-07-06 22:34:45 +00:00
gustav_delius 8264da3c50 Fixed bug 3684 2005-07-06 19:26:19 +00:00
gustav_delius 5cbc7a8b67 Get rid of a PHP notice 2005-07-06 18:00:56 +00:00
moodler f022a9ba9c file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:06 +0000 2005-07-06 16:01:33 +00:00
moodler ecf0c6af79 file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-06 16:01:32 +00:00
skodak c6dba19212 added word count display 2005-07-06 14:02:58 +00:00
moodler db83128e9d Switching off image border for now 2005-07-06 13:25:15 +00:00
moodler 8d3b909251 Fixed a link in forum post footer 2005-07-06 13:17:32 +00:00
moodler c01706d2d9 file assessmentstart.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler c550d531b9 file submissionstart.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 1c63afd97e file submissionend.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler e86ac958ef file releasegrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 89a44c34ba file assessmentend.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:38 +0000 2005-07-06 11:10:49 +00:00
moodler 50bdf52662 file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:54 +0000 2005-07-06 10:49:27 +00:00
moodler 694df151b4 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:54 +0000 2005-07-06 10:49:27 +00:00
skodak 445ec0d7e5 max upload size not shown to students 2005-07-06 10:14:22 +00:00
skodak 033cc8a223 Bug #3596 - Secureforms yes breaks online assignment 2005-07-06 09:51:37 +00:00
skodak f497c755aa compatibility hack for Moodle Cron, cookies not deleted, but set to "deleted" 2005-07-06 08:40:52 +00:00
gustav_delius 9182889ff9 In the past questions on the right hand side of the editing screen were previewed with the default settings whereas those on the left hand side were previewed with the quiz settings. That did create confusion among users so now questions will always be previewed with the quiz settings. 2005-07-06 07:32:59 +00:00
urs_hunkler 851ae37718 added class for userpic for better formatting via CSS in 2 additional lines 2005-07-06 06:54:58 +00:00
urs_hunkler 82aac29073 added class for userpic for better formatting via CSS 2005-07-06 06:31:20 +00:00
moodler 09d4003426 Updated tags file 2005-07-06 06:09:53 +00:00
moodler 75129c58b5 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-06 05:56:21 +00:00
moodler f2f438ac79 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-06 05:56:21 +00:00
defacer 4830bb4c53 Fixed the annoying "...and the 1 Journals you had..." message when you have
no Journals at all, because I was tired of seeing it.

count(false) is 1 and not 0.
2005-07-06 00:46:14 +00:00
defacer dca2e99977 Fix for bug 3616:
layout-table wasn't closed correctly for teachers and guests.
2005-07-06 00:35:37 +00:00
moodler 98774fcb6b file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-07-05 18:04:27 +00:00
moodler 75108389bc file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-07-05 18:04:27 +00:00
moodler 677c077839 file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-07-05 18:02:45 +00:00
moodler 3719d2e2ec file cost.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-07-05 18:02:45 +00:00
moodler e0b6f1b499 file cvs.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 18:00:10 +00:00
moodler 6ac4900f6c file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 17:59:24 +00:00
moodler ab4f0d249b file upgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-07-05 17:58:32 +00:00
skodak e13b1d135f disabled cookie check when alternate login url used 2005-07-05 17:14:29 +00:00
skodak d994661015 code cleanup - see SC#129 2005-07-05 16:59:29 +00:00
stronk7 561216b9c5 With the latest feature I introduced to filterlib (the ability
to specify a replacement phrase instead of printing the linked
phrase I introduced a bug about text being showed with the
case of the concept instead of the case of the text under case
insensitive filtering. Detected and solved now. Bug 3688.
(http://moodle.org/bugs/bug.php?op=show&bugid=3688)
caseCVS: ----------------------------------------------------------------------
2005-07-05 16:39:50 +00:00
moodler 7b78a84785 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-07-05 13:12:42 +00:00
moodler 44af81f7a7 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-07-05 13:12:41 +00:00
bobopinna 0ec5a6d1f8 Fixed an API Initialization error 2005-07-05 09:33:01 +00:00
bobopinna 4eaf7d4cb2 Changed scoid passing method from SESSION to POST 2005-07-05 09:13:57 +00:00
bobopinna d5567f7328 Fixed a typo 2005-07-05 09:13:07 +00:00
bobopinna d63eab1287 Updated RoadmaP 2005-07-05 09:12:01 +00:00
bobopinna ecf7b75f77 Fixed a problem with old tracking data removing 2005-07-05 09:11:12 +00:00
skodak a6e2a2300a fixed comments - SC #61 2005-07-05 08:27:55 +00:00
skodak 85b6606215 fixed searching - SC #61 2005-07-05 08:17:29 +00:00
skodak e012c1f164 initialize array $auth_options SC #127 2005-07-05 07:58:38 +00:00
skodak 7a6b6d5f19 added validation for themename - see SC #101 2005-07-05 07:49:30 +00:00
skodak 6049058f5e fixed problem when removing due date or adding due date to existing assignment 2005-07-05 06:28:53 +00:00
skodak 88cfea17a9 code cleanup - see SC #110 2005-07-05 05:44:23 +00:00
moodler 3cb97ea9fb file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
moodler 1cd5223e73 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
moodler f8f2157fa1 file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:08 +0000 2005-07-05 02:50:03 +00:00
stronk7 e07fcc6ef8 Bump. New and improved relinking system available.
No changes at DB layer so I'm free to update the version
and maintain it syncronished with HEAD, isn't it?
2005-07-04 22:31:04 +00:00
stronk7 bec56a397f Now workshop are working under the new system to relink. Bug 3678.
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
2005-07-04 22:23:00 +00:00
skodak e940f40580 Removed text cleanup from print_textarea(), text from students must be cleaned before display - not here, because it interferes with resources, books etc. 2005-07-04 20:22:57 +00:00
skodak 3fa1abaa40 new PARAM_SAFEDIR - fast cleaning for directories used in include() and require() such as themes, plug-ins, formats... 2005-07-04 19:48:26 +00:00
stronk7 69731e2cc5 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)
2005-07-04 17:34:24 +00:00
skodak 6cd4abdac1 fixed output when config-dist.php called directly SC #779 2005-07-04 17:00:46 +00:00
urs_hunkler 11b1927bd4 I deleted the table property "cellspacing=10", because it made the loginpage look different in MSIE (with spaces between the cells) and in Firefox (without spaces between the cells). Some themes therefore looked broken in MSIE. 2005-07-04 16:09:07 +00:00
moodler c8aec2b7bb file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-07-04 12:57:30 +00:00
moodler a73917523e file timed.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler aa31415e59 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 1c4bcba381 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler a7d9cb49e0 file practice.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 5e99e6706d file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 11d03ce9ab file review.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 4d7bf254fc file tree.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler 55d79da54f file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-07-04 12:56:20 +00:00
moodler a00e29d60a file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 06114e7b15 file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler bd97afd006 file maxtime.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 8fe324726c file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 4ece33a9a2 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 6e1af255df file highscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler c008505902 file bgcolor.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler babcb224b4 file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 4fbdff9cde file displayleft.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 1e563d8e1e file ongoing.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler afb96b0d7f file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-07-04 12:56:20 +00:00
moodler 79bf17b640 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:38:15 +0000 2005-07-04 08:28:45 +00:00
skodak cbac6369e3 typos in switch - semicolon after 'main' 2005-07-04 07:07:44 +00:00
moodler 0365831211 file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-07-04 05:05:32 +00:00
moodler 85cedef306 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-07-04 05:05:32 +00:00
moodler 6bf829136a file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-04 05:05:31 +00:00
moodler 602174a3dc file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-07-04 05:05:31 +00:00
bobopinna 9a62345785 Fixed a bug in report counting 2005-07-03 07:12:36 +00:00
bobopinna b36185320d Fixed a problem with altered chars in UTF-8 2005-07-03 07:11:44 +00:00
skodak 6c2ba19cdd not used anymore, please fix SC #99 before any use 2005-07-02 20:23:36 +00:00
moodler 356f30227a file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler 4689a3cd66 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler 4aa8faabdb file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
moodler e9ea8708b6 file preferences.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-07-01 23:22:39 +00:00
michaelpenne b3faa81ad1 Fixed a bug with the grade_get_module_link where wouldn't return any results
Fixed styles for grade tables to be class="grades" for both category and overall view
Fixed styles with overall view to alternate row styles everyline rather than every three
2005-07-01 20:06:07 +00:00
moodler f2760822ab file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-07-01 11:39:45 +00:00
moodler 727ad2124d file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-07-01 11:39:45 +00:00
mindforge 56459ea6e1 Fixed problem with automatic feedback, when 3x 33.33% didn't yield "Correct" but "Partially correct". Now the displayed (rounded)values are used, so the text should be in sync with the awarded grade. See also http://moodle.org/mod/forum/discuss.php?d=26584 2005-07-01 09:19:05 +00:00
defacer a328acd2f2 Improving Eloy's radio- and checkbox- generating functions to automagically
use <label>s with unique ids for improved usability. See discussion at
http://moodle.org/mod/forum/discuss.php?d=26139
2005-07-01 03:52:59 +00:00
martinlanghoff 6f095c04a9 enrol/ldap: (merge from HEAD) bugfixes suggested by Jeff Graham here http://moodle.org/mod/forum/post.php?reply=124170 -- fixes course creation not pulling summaries, form errors in ldap_search_sub, calls to deprecated blocks_get_default_blocks() and DB errors when inserting new enrolments. With these fixes, it may even work. 2005-07-01 02:51:15 +00:00
mindforge 0591a08cf1 Fixed problem with label tag in single answer multichoice questions. 2005-06-30 07:51:44 +00:00
defacer dd05085802 Getting the hardwired <i> out of the "post edited by" HTML and putting it
in CSS. I have been meaning to do this for something like 3 eons now...
2005-06-29 23:59:41 +00:00
defacer 8d8c444f9d Tiny visual improvement 2005-06-29 23:58:15 +00:00
michaelpenne 9f0b60ed6f Forgot to add a require for lesson's locallib.php and change a require from quiz's lib.php to quiz's locallib.php 2005-06-29 23:11:03 +00:00
michaelpenne 603a35322a Numerical import was still looking at min/max arrays. I changed it so numerical will now subtract the tolerance from the answer to get the min and add the tolerance to the answer to get the max 2005-06-29 23:05:28 +00:00
michaelpenne 9160e17321 FIXED: was calling an old quiz class name for importing. Updated it to call the new class name 2005-06-29 23:05:13 +00:00
michaelpenne 6deece3386 Display bug with lesson branch tables with slideshow mode on 2005-06-29 18:49:01 +00:00
stronk7 7992d2032c Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-29 18:23:48 +00:00
michaelpenne fb2371cea7 FIXED: at End of Lesson with review on produced two warnings. Now they are gone 2005-06-29 18:11:01 +00:00
moodler 08f89eca4d file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler cfb1b6cc26 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler f90015cf76 file letter.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 4b37b038ca file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 096da37850 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 6f738c12bd file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler dc7ebee343 file preferences.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:14 +0000 2005-06-29 17:50:53 +00:00
moodler 57d3f3d924 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler f50c21e36a file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler c3633061ff file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler c1f0c0b5fa file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 20c2b54542 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 8e0508945c file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler f2a26e4d66 file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler e895355a17 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:50 +0000 2005-06-29 17:50:49 +00:00
moodler 1941ca6586 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler d64da4713d file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler 2b5f8fd827 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:40 +0000 2005-06-29 17:50:48 +00:00
moodler ea76c04ee9 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler c63db8b61d file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler a92af1e3ad file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 2c5b0f8154 file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 1d4392b33f file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:48 +00:00
moodler 44501b674c file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:38 +0000 2005-06-29 17:50:45 +00:00
moodler ca02fba3e5 file authchange.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 25d21f0821 file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 91cbd9b2ab file cost.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:44 +00:00
moodler 54c5330c1a file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
moodler aa004b4cfe file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
moodler 7fd73b41ed file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:00:37 +0000 2005-06-29 17:50:42 +00:00
stronk7 4eb4ad04db Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-29 16:56:23 +00:00
stronk7 3fc29386af SC#126 2005-06-29 16:14:40 +00:00
moodler b38c5f2aaf file assessmentofexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 29a698998b file submissionofexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 01c47c874b file selfassessment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e19f672835 file analysisofassessments.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c7ac64d2db file gradingassessments.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 346dd8ca80 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler ec60a0d59a file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 398d4a8db2 file ungradedassessments_teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler b514da01a0 file nelements.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 5c0375b658 file elements.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 12d4023e43 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler dee7fd6048 file gradingsubmissions.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e685ded405 file overallocation.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 20f32ed028 file breakdownoffinalgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 671d4819bc file includeteachersgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 65b95660c0 file nassessmentsofteachersexamples.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c8d01fb2e3 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 0168d3c716 file calculatingfinalgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler c991030e0a file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 1dcef80b9f file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler a6c50876a3 file includeself.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler ed103c1a63 file ungradedassessments_student.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 8982c7d343 file addingacomment.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 63e9fa8bdb file specimen.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e1f41e2260 file grading.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler d928959877 file managing.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 0507e988a6 file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler e12cda81ef file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 5c07ac6a7a file nassessmentsofstudentsubmissions.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
moodler 8b3943e0b5 file anonymous.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:53 +0000 2005-06-29 12:13:11 +00:00
stronk7 da64b6a98e Added one new string to be used by the m4w installer. 2005-06-29 09:18:07 +00:00
moodler e2c77dd01f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:52 +0000 2005-06-29 08:56:51 +00:00
bobopinna 6c94871c56 Fixed a problem with some item title 2005-06-29 08:43:51 +00:00
bobopinna e61fd9ab16 Fixed bug 3443 and the file not found error on restored scorms 2005-06-29 07:10:17 +00:00
stronk7 3471fa7ba0 Added a function to print a standard html checkbox 2005-06-28 16:52:46 +00:00
mindforge 7f80097841 Partial fix for bug #3604. Fixed backup/restore for multianswer questions. States still don't get restored correctly! 2005-06-28 12:43:50 +00:00
moodler 20c4d467b8 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 6d26b502ae file popup.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 989b4dd302 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 9ee9f0bb08 file requiresubnet.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 03f91c22c6 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler b79eee4520 file questiondatasets.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 566b2664e2 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler bcb91f2abd file requirepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler c529fcdbe1 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 1de5a75c8c file review2.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:53 +00:00
moodler 251514b4bb file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 8e815df623 file export.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 0aeb823dc4 file calculated.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler c3ee28c440 file decimalpoints.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:38 +0000 2005-06-28 07:04:52 +00:00
moodler 893345b32b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:37 +0000 2005-06-28 07:04:52 +00:00
bobopinna b7119d1440 Fixed a upgrade bug with field timelimitaction 2005-06-28 06:57:57 +00:00
urs_hunkler f046c91c6e added the CSS for the black border around the userpicture and the grouppicture for the online user block 2005-06-27 17:37:08 +00:00
urs_hunkler a8c8fbf706 ?dded the CSS for the black border around the userpicture and the grouppicture 2005-06-27 17:31:59 +00:00
moodler 91c21f2b1b file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-27 13:02:26 +00:00
moodler 44bb2a6e0e file size.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:37 +0000 2005-06-27 07:58:16 +00:00
moodler 9c11d36fe9 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:37 +0000 2005-06-27 07:58:16 +00:00
bobopinna 6a7aa3f9c0 Fixed a problem with previous sco button 2005-06-27 07:33:59 +00:00
bobopinna 1cc24851a2 Fixed a problem with lesson_status setting 2005-06-27 07:32:36 +00:00
urs_hunkler ff19ce674d update of the readme text. 2005-06-27 06:02:14 +00:00
danmarsden e1b434b129 Bug #3623 - doesn't like when $value = 0 2005-06-27 01:03:50 +00:00
stronk7 76adec164b Solved a problem where the '1' string was being cached to ''
because we concatenate true and it's evaluated like 1.
Bug 3623.
(http://moodle.org/bugs/bug.php?op=show&bugid=3623)
2005-06-27 00:21:59 +00:00
stronk7 6eff731b3c Added the choose_from_radio() function to
display groups of radiobuttons in a central way.
Part of bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)
2005-06-27 00:15:12 +00:00
stronk7 c196b29413 Avoid some backslashes causing problems with some browsers. Bug 3463.
(http://moodle.org/bugs/bug.php?op=show&bugid=3463)
2005-06-26 16:43:31 +00:00
stronk7 2e390fcb96 Added readme and screenshot to Wood Theme. 2005-06-26 15:45:37 +00:00
moodler b6cec9e900 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler ead1951a57 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler a0680c868b file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 73e5412854 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 2affe0355e file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 727a216d59 file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler 829f54d594 file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
moodler eb707720f1 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:43 +0000 2005-06-26 14:10:24 +00:00
stronk7 2cdcb56958 Now the entry being commented is showed when
adding comments for non-approved entries. Bug 3638.
(http://moodle.org/bugs/bug.php?op=show&bugid=3638)
2005-06-26 09:31:10 +00:00
julmis b1192638c2 Fixing Bug 3576
- bad grammar, so I've been told ;-)
2005-06-26 06:15:55 +00:00
stronk7 1e4ffe8752 Added some top margins for two glossary pages. 2005-06-25 19:13:18 +00:00
stronk7 43bee0ad7e Changed one table header. 2005-06-25 17:08:17 +00:00
stronk7 f4d8478a9d Now $CFG->allowobjectembed is working properly. Admins
will ignore this setting. Bug 3608.
(http://moodle.org/bugs/bug.php?op=show&bugid=3608)
2005-06-25 15:39:12 +00:00
fiedorow b70ea3c680 Fix for broken no authentication 2005-06-25 13:20:30 +00:00
fiedorow 3eb93697aa Compatibility fix for glossary 2005-06-24 18:04:52 +00:00
gustav_delius 3d6fb28178 Changed "Later, while the quiz is still open" to "While the quiz is still open", see http://moodle.org/mod/forum/discuss.php?d=26311 2005-06-24 16:41:44 +00:00
gustav_delius 0c6e298228 Removed the "Continue" button from the attempt page, see http://moodle.org/mod/forum/discuss.php?d=25972 2005-06-24 16:23:32 +00:00
fiedorow e2d7af8412 Fix for broken guest shortcut 2005-06-24 15:28:29 +00:00
thepurpleblob 6482f073ac Added empty feedback array to prevent error when questions are saved. 2005-06-24 13:17:03 +00:00
thepurpleblob 425e7df6ee tolerance being picked up from 'old' place in object. Fixed. 2005-06-24 13:01:42 +00:00
gustav_delius 79cc5ce839 XHTML compliance 2005-06-24 12:53:45 +00:00
thepurpleblob 43079e1883 Seems 'core' classes changed to 'internal' folder in latest version. I
simply changed the path in the class. How this never show up........
2005-06-24 12:47:55 +00:00
moodler 1edb6e3555 file philosophy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-24 10:26:09 +00:00
gustav_delius 3693b82020 changed & to &amp; 2005-06-24 08:02:06 +00:00
gustav_delius e80ad3b374 quoted two attributes for XHTML compliance 2005-06-24 07:52:26 +00:00
stronk7 a00cd5ad53 Take out one "white" use. Bug 3610. Credits are for Helen Foster.
(http://moodle.org/bugs/bug.php?op=show&bugid=3610)
2005-06-23 20:12:59 +00:00
fiedorow a23b767ebb Sorry, committed wrong version 2005-06-23 15:22:38 +00:00
fiedorow d79aa15c71 Bug fix for bug #3614 2005-06-23 15:18:11 +00:00
moodler 07a40e5714 file window.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:42 +0000 2005-06-23 13:17:00 +00:00
fiedorow b4ddf27cdd Bug fix for bug #3613 2005-06-23 12:23:21 +00:00
moodler 32855b4019 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-23 11:38:55 +00:00
fiedorow e26aaed2a4 Fix for bug #3607 2005-06-23 11:29:34 +00:00
thepurpleblob 5fe35ab0e3 improved name of function - clean_getstring_data() - and call it only
is data is actually defined.
2005-06-23 09:02:45 +00:00
stronk7 6add2dbfc7 Changed to use the new replacementphrase attribute so
bad words are replaced with a strlen(phrase) number
of **** characters. Bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)
2005-06-22 23:33:08 +00:00
stronk7 aadb24e091 Add a new attribute to the filterobject class.
Now it supports a replacementphrase to be passed
so, the original phrase will be replaced. Nothing happens
if empty. Part of bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)
2005-06-22 23:21:26 +00:00
mindforge 88170baf19 Implemented the suggestion from http://moodle.org/mod/forum/discuss.php?d=26139. The label element is now used in the multichoice and truefalse questiontypes in order to allow clicking on the answer text to select the according checkbox/radiobutton. 2005-06-22 11:21:46 +00:00
michaelpenne 0d6254cd8d Made the shortanswer qtype grading much more reliable. Change to preg_match to speed things up. Also do a preg_quote on the teacher supplied answer to prevent confusion in the preg_match statements (before + signs and the like were causing the preg_match statements to fail). 2005-06-21 22:36:35 +00:00
michaelpenne 0719af8aac Bug Fix: The code for dealing with the * character for shortanswer question type was lost. I downloaded 1.4.5+ and merged the shortanswer grading code into 1.6 dev. 2005-06-21 21:56:50 +00:00
thepurpleblob 1a08f75e50 Improved 'cleaning' of optional data parameter in get_string() to include objects 2005-06-21 12:29:03 +00:00
moodler 9ef1ef1869 file webquest.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:09 +0000 2005-06-21 10:28:40 +00:00
moodler 447a482619 file tex.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1058cca34c file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1a750b6307 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 1d05050c6c file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 2ffa17100e file simplemail.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 881075b287 file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
moodler 2a386c0d74 file block_simplemail_information.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:08 +0000 2005-06-21 10:28:40 +00:00
gustav_delius e546494f92 fixed error in sql syntax 2005-06-21 07:05:51 +00:00
urs_hunkler c273a2f31f _ some space above the userpiicture added in #user-edit and user-view.
_ rmoved the border above the link in the rss sideblock
2005-06-21 06:08:03 +00:00
moodler dffc320511 file README.txt was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:12 +0000 2005-06-20 18:13:12 +00:00
moodler 2852f047aa file default.ttf was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:12 +0000 2005-06-20 18:13:12 +00:00
moodler e0a9d6b93a file attendance.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler 32abe3255a file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler c2533292f0 file moodle.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler 7b82fe3699 file calendar.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler ab4333e1c9 file admin.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:57:11 +0000 2005-06-20 18:13:12 +00:00
moodler b2326e175a file README was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:12 +0000 2005-06-20 18:13:11 +00:00
mindforge 12fcbb1fab Added possibility to escape #, ~ and } to the cloze questiontype. This is necessary so that in the answers HTML entities can be used (e.g. &#601; can now be included in an answer if it is written &\#601;). See also bug 3553. 2005-06-20 13:15:24 +00:00
moodler 7a8a43763d file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-20 12:35:19 +00:00
thepurpleblob df677142d9 Fixed typo. See bug #3573 2005-06-20 09:14:32 +00:00
thepurpleblob ecc0c8b802 Escape % signs in get_string() function optional parameter. Bug #3527 2005-06-20 09:08:48 +00:00
thepurpleblob fc823bf378 Added missing sesskey field to module config screen 2005-06-20 08:26:17 +00:00
moodler 524b4ec865 file docstyles.css was added on branch MOODLE_15_STABLE on 2005-07-07 17:16:13 +0000 2005-06-20 08:16:38 +00:00
moodler 06a56158a6 file translation.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:41 +0000 2005-06-20 08:15:25 +00:00
mjollnir_ 89394c8d6f fixing bug 3569: current workaround= one query for postgres, one for mysql. probably a better way to do it when someone has more time 2005-06-20 04:32:04 +00:00
defacer 0757dc7cec Adding default sort order to participant lists to reinstate 1.4-style behavior. 2005-06-20 03:45:49 +00:00
defacer d10b0ae93e Augment tablelib so that it can accept a default sort order. 2005-06-20 03:43:25 +00:00
mjollnir_ f0ee6c7b0b Fixing postgres upgrade to match postgres7.sql (bug 3547) 2005-06-19 21:38:04 +00:00
mjollnir_ 9d7b35c73c Renaming index to match table (rqp_type) more on 3547 2005-06-19 21:30:09 +00:00
mjollnir_ 32321469bc Fixing typo on index for rqp type (bug 3547) 2005-06-19 21:27:57 +00:00
stronk7 33c895943e Checking some fields because they were breaking restore of old courses.
Bug 3444
(http://moodle.org/bugs/bug.php?op=show&bugid=3444)
2005-06-19 18:26:08 +00:00
moodler fd466ef02d file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:51:06 +00:00
stronk7 b92e44c50d Now the cancel button goes to the course (or site) page. Bug 2817.
(http://moodle.org/bugs/bug.php?op=show&bugid=2817)
2005-06-19 17:50:53 +00:00
moodler 80fec54702 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:45:04 +00:00
moodler d4d9b7adbe file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler 233993afd3 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler f27efbf4b2 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:43:44 +00:00
moodler c952ea8d4b file block_html.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:01:40 +0000 2005-06-19 17:42:50 +00:00
stronk7 221f65b6c3 Now glossary ratings display user links in a new page. 2005-06-19 17:32:22 +00:00
stronk7 d437835d78 Order by rating now works. See bug 3566.
(http://moodle.org/bugs/bug.php?op=show&bugid=3566)
2005-06-19 17:12:31 +00:00
stronk7 cf2b886d4d Using the time class properly. 2005-06-19 16:45:11 +00:00
stronk7 4031b89e9b Some styles changed to show consistently the author and
time information.
2005-06-19 16:27:27 +00:00
stronk7 39952eee06 Now the name of the authors is a link to the user page.
To be a bit more like forum posts Bug 2809.
(http://moodle.org/bugs/bug.php?op=show&bugid=2809)
2005-06-19 15:23:54 +00:00
stronk7 c5d569c6af Now + and - search terms are properly highlighted
under glossary searches. This was broken recently
solving some non-iso problems.
2005-06-19 14:44:58 +00:00
moodler 327df50025 file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:09 +0000 2005-06-19 12:47:04 +00:00
moodler de311acd1d file authchange.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3408a01243 file coursefullname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3b5271f34f file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler bf87cc5594 file courseavailability.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 3da5aee8ab file courseidnumber.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 13ff917186 file courseshortname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 79aa2098a5 file coursecategory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:35:36 +00:00
moodler 83d86ba626 file surveys.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-18 16:33:14 +00:00
moodler a5c0415580 file scorm.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:43 +0000 2005-06-18 14:35:55 +00:00
stronk7 770d88ced5 Some changes added (see bug 3188).
- Added correct encoding.
   - Make page XHTML 1.0 Frameset compliant
Credits go to sunner_sun.
(http://moodle.org/bugs/bug.php?op=show&bugid=3188)
2005-06-18 09:59:39 +00:00
urs_hunkler 96393dd450 removed the .block_rss_client .title correcture bcause I have changed the styles.php of the block. 2005-06-18 08:00:14 +00:00
urs_hunkler a0c2d453c7 I removed letter-spacing because some browsers are not able to display the text correct when using a small amount for spacing. 2005-06-18 07:58:19 +00:00
moodler 965d344017 file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-17 17:37:23 +00:00
moodler 02948ab08b file teacher.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-17 17:37:22 +00:00
stronk7 abcb2346b7 One style is not necessary. Delete it. 2005-06-17 17:05:32 +00:00
mindforge 4809b5ea1d Fixed problem with tolerance in cloze numerical questions. 2005-06-17 16:36:13 +00:00
moodler fd2beb3383 file respondenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:37:10 +00:00
moodler 86ea9f3820 file questionnaireid.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:35:15 +00:00
moodler 92d7d849e9 file qtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:34:02 +00:00
moodler 01a661a5b2 file qmanage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:32:57 +00:00
moodler 23b6f32087 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:28:54 +00:00
moodler bb8a86d2a7 file options.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:26:46 +00:00
moodler fa498fc83b file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:25:17 +00:00
moodler 0b16c0de19 file limit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:24:10 +00:00
moodler 29d263f26d file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:22:37 +00:00
moodler d630d32338 file chatting.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:52 +0000 2005-06-17 15:17:10 +00:00
moodler 07799f187b file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:54 +0000 2005-06-17 15:06:39 +00:00
moodler d072f34f5a file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:05:26 +00:00
moodler bf2dc956fa file package.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:04:23 +00:00
moodler 9fb48afe1a file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:03:11 +00:00
moodler cf4f33c352 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 15:01:33 +00:00
moodler a554e7c33c file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 14:59:58 +00:00
moodler 40ea07e4d0 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-17 14:58:16 +00:00
urs_hunkler 6f96b83473 removed padding-top from title, which made the title of the sideblock higher than the other ones. 2005-06-17 06:26:45 +00:00
moodler 88639aa1c8 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:12:01 +00:00
moodler 829dc9522c file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:10:38 +00:00
moodler 1ee838b5ee file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:09:41 +00:00
moodler 226b5a8e12 file hours.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:08:35 +00:00
moodler 4c023bf561 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:07:36 +00:00
moodler 319f61e0d2 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:06:43 +00:00
moodler 54b02a56a7 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:05:30 +00:00
moodler 6b20b6587a file autoattend.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:04:03 +00:00
moodler cbcee839e2 file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 06:01:05 +00:00
moodler 17f2f65a05 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:59:59 +00:00
moodler 579a6b8ff8 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:44:39 +00:00
moodler c6fab7af24 file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:43:35 +00:00
moodler 29b46bfc99 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:51 +0000 2005-06-17 05:42:10 +00:00
moodler 76c8cbd44e file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:51 +0000 2005-06-16 22:42:51 +00:00
moodler b5e241a788 file letter.html was added on branch MOODLE_15_STABLE on 2005-07-07 06:32:49 +0000 2005-06-16 22:42:49 +00:00
moodler 1fc6bb6ee3 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-16 20:28:28 +00:00
moodler 45bcdfa9db file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-16 20:28:28 +00:00
fiedorow ee74d5e92a Security fix: stop guest uploading 2005-06-16 17:16:53 +00:00
moodler df256b30e0 file category.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:03:09 +0000 2005-06-16 12:34:47 +00:00
mjollnir_ c0f988a1e5 Another postgres fix -- this time forums were not being displayed 2005-06-16 03:11:51 +00:00
mjollnir_ 61cf7b168b html_entity_decode segfaults in php 4.3.1 on an empty variable... documented in bug 3508. credit: Eloy & Jose Luis Daz 2005-06-16 02:57:58 +00:00
mjollnir_ 61fd69b8ae Fix for bug 3508 -- only do the clam log on backup/restore for restoring course/user/group files, not for temp backup data 2005-06-16 02:32:42 +00:00
moodler 49d7755163 file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-16 00:05:13 +00:00
moodler 49b2930b8d file upgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-16 00:03:42 +00:00
moodler cf5b77cd85 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-15 23:57:52 +00:00
moodler 34853e7bc5 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-15 23:57:52 +00:00
michaelpenne 5a1ca11989 Fixed a problem with quotes in short answers 2005-06-15 22:51:31 +00:00
mjollnir_ 8f3e3695e3 Fixing bug 3502 - 2 postgres problems - one in db creation (my fault) and one in '' instead of 0 for int in sql query 2005-06-15 22:36:20 +00:00
michaelpenne 7070d53107 Fixed a bug with clusters. If you enter a cluster after a page it would throw a
navigation error.  It now enters the cluster properly.
2005-06-15 22:34:31 +00:00
urs_hunkler d673f73a37 corrected the CSS. It is not enough to set the outer class once at the begining of a comma separated list of CSS stylings. Every item must contain the full series of classes or ids, only the properties are following once. 2005-06-15 19:26:33 +00:00
stronk7 1687749a16 Minor tweaks applied 2005-06-15 15:55:41 +00:00
stronk7 dfc6579e1e One collapse:separate used to debug is now out. 2005-06-15 00:32:54 +00:00
stronk7 d27c760508 Modified the grades visualisation to make use
of styles a bit better. Works fine under standard
and wood personalise it aparently without problems.

Sure it can be improved...!
2005-06-15 00:24:24 +00:00
stronk7 9629cc6d78 More changes. Gradebook is working with some basic styles.
And things have been simplified a bit.
2005-06-15 00:06:34 +00:00
moodler 0eed750d84 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-14 21:25:40 +00:00
moodler 5f87491394 file student.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-14 21:25:40 +00:00
defacer 9b8a859781 Fix for bug 3510:
Due to stupidly copy/pasting some code, deleting a block instance could,
under some circumstances, throw a fatal error.
2005-06-14 20:32:40 +00:00
michaelpenne d031cf09b0 put in two !== instead of != to compare NULL values 2005-06-14 17:40:46 +00:00
defacer 70057cf44f Fix for bug 3467: Adding "single discussion forum" was broken. Now works. 2005-06-14 15:50:13 +00:00
djachenko d36fc3561d submitassignment 2005-06-14 10:16:24 +00:00
moodler 276ce5fb85 file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-14 02:26:52 +00:00
moodler 1a26550217 file weight.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-14 02:26:52 +00:00
stronk7 964556fdb6 Survey and grades implemented
(some changes to grades will arrive tomorro with some
defaut styles to show thigs a bit better)
2005-06-14 00:31:36 +00:00
gustav_delius 4fb6abdd28 changed more relative filenames to absolute, see bug 3483 2005-06-13 22:06:25 +00:00
stronk7 cbe80a54c1 forums, glossaries and assignment are now displayed properly. 2005-06-13 19:54:28 +00:00
stronk7 d48f9fcfda Adding some header classes for 1 table. 2005-06-13 19:35:19 +00:00
gustav_delius ba2e6a32ea replaced relative links to absolute links because some web servers get confused, see bug 3483 2005-06-13 18:22:32 +00:00
stronk7 cc7d926e11 Wood styles are now in more pages... 2005-06-13 17:56:36 +00:00
mindforge aec645efcd Fixed bug #3481 2005-06-13 09:39:49 +00:00
moodler f5897334fb file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:47 +0000 2005-06-13 06:34:20 +00:00
moodler 33fefcb567 file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:47 +0000 2005-06-13 06:34:20 +00:00
defacer 85ad80a03f Implementing Dan Marsden's great idea for additional hooks when block
instances are deleted (bug 3446). Going a step further and adding hooks
for when block instances are created.

This probably counts as adding features to a STABLE, but I wanted to
give any future blocks that use this as much back-compat as possible.
2005-06-13 03:29:47 +00:00
defacer 9b1e8d728a Adding a little more checking to the session switching trap code.
I 've come across a problem where:

1. You have an "old" (say 1.3.5?) Moodle installation.
2. You are logged in as admin.
3. You suddenly switch to using a 1.5+ codebase with
   the SAME database, WITHOUT LOGGING OUT FIRST.

In this situation, I was presented with a deadlock. I could not do
anything because "my session had expired", and I could not even
log OUT to clear my session. In fact it was just reloading the
"session expired page" all the time.

If it weren't for debug = On which causes a notice in these
circumstances, it would be fracking difficult to understand what
was going on.

With this small addition, you can at least visit your login page
and log in anew, so problem fixed.

I believe this was talked about in the forums lately? Not sure.
2005-06-13 02:50:46 +00:00
defacer 230783ba85 While researching bug 3478:
Consolidated handling of the incoming courseid parameter, as it was easy
to make an error the way this was written before.

In general, this script looks like it needs to be streamlined.
2005-06-13 02:35:38 +00:00
defacer fa62ca18e8 Fix for bug 2925:
When editing is turned on, the Main Menu should always display and give
the option of adding resources/activities in section 0 of the site.

Bad optimization code caused the drop downs to not be shown if there
was no section 0 (i.e., the site never had a news forum or an activity
in the Main Menu block).

FINALLY! :)

PS: Version bump, so that we know if people have the latest version of
the block. I 'm going to bump versions from now on when bugs are fixed.
2005-06-13 01:56:25 +00:00
moodler 51f4d70284 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-13 01:31:15 +00:00
moodler 575ba2443d file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-13 01:31:15 +00:00
moodler 9a7af7f0c9 file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-13 01:31:15 +00:00
moodler 3104265b51 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-13 01:31:14 +00:00
defacer abb7e59d46 Fixing a notice when $CFG->forum_trackreadposts doesn't exist (when editing
the admin account during installation, for example).
2005-06-13 00:44:43 +00:00
mjollnir_ d7083e8737 Email bounce handling: fixing md5 validation bug 2005-06-13 00:16:55 +00:00
moodler e03ec5ca2a file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler 84d3c29dad file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler 37de8a3494 file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 15:45:50 +0000 2005-06-12 22:02:58 +00:00
moodler b89ad2fc1e file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 15:59:07 +0000 2005-06-12 20:04:45 +00:00
moodler 89a660aaba file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-12 17:37:07 +00:00
moodler 60b482f67f file analysisdownload.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:53 +0000 2005-06-12 17:37:07 +00:00
gustav_delius 3a60417d9d Help files from Enrique, slightly modified. Closing bug 3432 2005-06-12 13:49:37 +00:00
moodler d96c4f3aa9 Some small change in making defaults for fronmt page 2005-06-11 18:58:37 +00:00
moodler 8dbd402a97 Change default front page format to be courses 2005-06-11 18:57:09 +00:00
moodler c8b383e37a Added slight spacer on login page 2005-06-11 18:34:36 +00:00
moodler 903d01ccb4 Added extra CSS styles so Eloy can do cool stuff in Wood theme
Main sections now have added "main", and separator sections
have "separator".
2005-06-11 18:23:43 +00:00
mindforge 3ed1ef582f The calculated question wizard has been restructured/rewritten. A new question is now only saved when the first dataset item is added. And hopefully the code is somewhat clearer and easier to understand. Additionally it all works through the (slightly adapted) standard question.php mechanisms and doesn't hack around it. 2005-06-11 13:16:57 +00:00
moodler eceda4634f file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:36 +0000 2005-06-11 12:26:26 +00:00
moodler becc6bfc56 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:36 +0000 2005-06-11 12:14:55 +00:00
moodler 25618ea469 file README.txt was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:50 +0000 2005-06-11 12:10:42 +00:00
moodler fe1c4e6d89 file default.ttf was added on branch MOODLE_15_STABLE on 2005-07-07 17:05:50 +0000 2005-06-11 12:10:42 +00:00
julmis e0675c474f Fixing cut 'n' paste mozilla confirm line again... 2005-06-11 11:01:03 +00:00
moodler 0f49980a0e file philosophy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler e74466b0a0 file intro.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler cb0b4be6b7 file other.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler a2b2a68587 file coding.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler 65a4df9d55 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler 84ea026b4c file background.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler f608db22a8 file features.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:52 +0000 2005-06-11 00:54:15 +00:00
moodler c9abc270f2 file text.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:47 +0000 2005-06-11 00:21:35 +00:00
moodler 8a2e373a63 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler c803207669 file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler 2b9c339fe6 file wikiname.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler bceea57e1d file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler b05de5d96a file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:35 +00:00
moodler 849e4bf620 file window.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-11 00:21:34 +00:00
moodler c596036229 file penalty.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 07f7a76fb7 file random.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler ea8acc1cdc file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 907d3d2ef7 file requiresubnet.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler e1ee24102f file export.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 5957cbb539 file correctanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler ef907c4840 file feedback.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:34 +00:00
moodler 7d748cfae1 file import.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler 5f8d3a3664 file minquestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler fbed5b62ee file overview.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler dc8c752c5d file maxanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-11 00:21:33 +00:00
moodler 0b286cf21e file custom.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-11 00:21:33 +00:00
moodler 76f24be0a5 file usedynalink.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 1b1b729eb9 file entbypage.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler f532678fe2 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler e301c30ae8 file attachment.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 4f310cd444 file usedynalinkentry.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:33 +00:00
moodler 86e44d10ee file forumtype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler 92262dcb59 file subscription2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler 7ee5671e18 file aliases2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:32 +00:00
moodler c179fe2aa7 file grading.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-11 00:21:31 +00:00
moodler 53363a8365 file closedialogue.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-11 00:21:31 +00:00
moodler 42bc1ad5fe file chatting.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-11 00:21:30 +00:00
moodler ce62d03091 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:30 +00:00
moodler e187b9391d file files.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-11 00:21:29 +00:00
moodler c5c9ef2004 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler c3d609a3f2 file cookies.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 7024225764 file questions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler ca52c559a3 file writing.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 22da13bd0a file html.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler 29fe9e516e file text.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-11 00:21:29 +00:00
moodler f2e652004f file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 1d660f65e4 file questionnaire.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 357532c491 file wiki.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler 24cf7e4dc5 file timezones.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:28 +00:00
moodler ef3064ee84 file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0bcf2a3561 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 806e50b3c7 file block_course_list.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler de488ea4dd file block_glossary_random.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0971a70695 file block_online_users.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 1fdb043504 file grades.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 649333df15 file enrol_paypal.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler fac088a544 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 4f667d4209 file hotpot.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 1404dd0e18 file install.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 50033d9128 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 469b28034b file message.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 38238a83da file appointment.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 40b145b1aa file block_html.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler f70e4ac4b0 file block_course_summary.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 2c95341c64 file calendar.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler a4fa13ef70 file block_social_activities.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 0fdef6bcdf file enrol_database.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 5ef7459355 file enrol_flatfile.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler ea41487667 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 76a0d881b9 file activitynames.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 5d0fa584ca file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 8c43043fdc file enrol_internal.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 6b47cfd866 file block_section_links.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:51 +0000 2005-06-11 00:21:27 +00:00
moodler 468e60dda3 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-10 23:55:12 +00:00
moodler 7d7b5a6a66 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:02 +0000 2005-06-10 23:55:11 +00:00
ecastrolt 101ff90760 *** empty log message *** 2005-06-10 18:42:29 +00:00
moodler 9df3490a99 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:43 +0000 2005-06-10 17:28:17 +00:00
moodler 938cd0f631 file future.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:12:44 +0000 2005-06-10 17:25:00 +00:00
julmis 4e712f7bd6 Fixing cut 'n' paste headache... Auts...
Multilined error message wasn't working well.
2005-06-10 17:14:05 +00:00
ecastrolt 6228beb135 *** empty log message *** 2005-06-10 17:04:56 +00:00
stronk7 8e1314c7a2 Reordering styles a bit....to find them easily. 2005-06-10 15:35:31 +00:00
moodler 52fd07555f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 01e87a4673 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler fd9329e7f7 file options.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler c1db910dda file limit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 14249f8441 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:16:00 +00:00
moodler 06469948a7 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 478ca9a9e2 file removepages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler b9f436c930 file wikitype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 5a644bd7d3 file strippages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 0de476e235 file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler b2b719935f file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 5f6c0b1e98 file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 937d7b52c5 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler a1b3c3e4cf file checklinks.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 168873c341 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 782aa08eaa file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler d517d25943 file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:04:13 +00:00
moodler 7251542cd8 file label.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:47 +0000 2005-06-10 15:03:56 +00:00
moodler 7b41d89fe4 file html.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler d361e66afc file file.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler 48753e1a1f file directory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:11:46 +0000 2005-06-10 15:03:56 +00:00
moodler 88637d4c73 file timeopen.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler f4acdcc176 file truefalse.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler deea1d84d9 file timelimit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler b7f278fe1d file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler dcfd0dff70 file summary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler 3be1259eb9 file parameters.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:59 +0000 2005-06-10 15:03:55 +00:00
moodler 88d295948d file shufflequestions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:55 +00:00
moodler 981ceefdf7 file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler adad4fd9f0 file popup.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler c2f03bc722 file randomsamatch.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler bd6b9530ef file match.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 964d6dc73d file attempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 96b39e79bb file numerical.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 969bf35c2f file categories.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler f39917d8d9 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 6d1e31c34b file multichoice.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 2bb01a4e58 file requirepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 824816e06f file adaptive.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 5a2658ca41 file questiontypes.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler eac6bc964d file calculated.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 4f68b47504 file decimalpoints.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 7341e97c93 file review2.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 98227d36e1 file shuffleanswers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 4d48860e68 file shortanswer.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler be9e88091a file description.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 8b0aa6ffb3 file repeatattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 40f0a960f7 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:54 +00:00
moodler 16975e3616 file questionoption.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 4e6f474a58 file maxpages.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 6532f6b856 file retake.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler a1357fc970 file lessondefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 1feaffe800 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 5b645d1016 file height.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 91d602fb1a file timed.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler dcefa09e57 file maxtime.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 2b429140e8 file width.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 5e3d6406e9 file maxattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 9ce6c24791 file handlingofretakes.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 25aeb72573 file maxhighscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 80a147e820 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 09dac5eebb file practice.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 3f6ae60106 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 8b8b5f43ee file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 32741d16c0 file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler b10dc2d6ba file review.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 2aa6346fa9 file jumpto.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 301ff2fe75 file highscores.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 9c45d35790 file tree.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 18bb2e0325 file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler c8c6addcac file modattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler dd4bba5a50 file ongoing.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:58 +0000 2005-06-10 15:03:53 +00:00
moodler 4aecfad306 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler f3fb3a2b2d file bgcolor.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 088a5e5e12 file deleteattempts.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 1dd72d43c3 file displayleft.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:53 +00:00
moodler 35ca4ed7ee file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:57 +0000 2005-06-10 15:03:52 +00:00
moodler 323f1e49e2 file casesensitive.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler de20d6f610 file editalways.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler c3258231df file importcategories.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 917cc0fca4 file globalglossary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 5c64d1cdd3 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 1aed3e931b file studentcanpost.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 1636626882 file allowprintview.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler dbfb58b629 file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler b09e69a0b0 file shows.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 3c09aeec29 file mainglossary.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 7bc7f28148 file linkcategory.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 5f32625c01 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 2c329933cc file allowduplicatedentries.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 6f4f6fe13c file destination.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler d15b1bd91e file defaultapproval.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 57efcbc6dd file filetoimport.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 7f407d1f3f file description.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 4996d3d28c file allowcomments.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 6128c50b39 file displayformat.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler e167032c03 file fullmatch.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:52 +00:00
moodler 89a8b837ed file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler eb7b88ea9d file submissionofdescriptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler b357805a0d file usemax.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 8d48260f84 file leaguetablenames.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler b0846bc19a file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler e36af790df file usepassword.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 740d5f70d7 file specimen.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler e9d0bcbcfd file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 73a1ee602a file password.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler aa1b2fcd73 file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 2c0717e001 file maxattachmentsize.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler fb283cda43 file allowdiscussions.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 901e6b6e6b file attachment.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 9aaaed344c file rsstype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:56 +0000 2005-06-10 15:03:51 +00:00
moodler 34648c65c3 file info.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 8d87913195 file dialoguetype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 6216697b79 file addsubject.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler e510af822e file multiple.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 9ee255715d file deleteafter.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 1161f96fb1 file maildefault.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:55 +0000 2005-06-10 15:03:50 +00:00
moodler 16124ac3f5 file hours.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 490e05c698 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 5e69cf407f file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler 579769bded file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:54 +0000 2005-06-10 15:03:49 +00:00
moodler d0f1967418 file grade.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler d3332366f1 file autoattend.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler dac4e79866 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler f353928ad3 file commentinline.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 07f2bb581e file mods.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 0cc653c3a7 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 0607dc743c file types.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 075433aef3 file index.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 96ba4407f6 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:49 +00:00
moodler 407c22a76f file teachers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler b18baa0c89 file richtext.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler 8f5bc35905 file textformat.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler bb1b4b4784 file uploadusers.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler 52a40768b2 file reading.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:48 +00:00
moodler a597bebb84 file groupmode.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
moodler 6066fdd301 file directorypaths.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
moodler 1324f3c6af file groupmodeforce.html was added on branch MOODLE_15_STABLE on 2005-07-07 17:10:53 +0000 2005-06-10 15:03:47 +00:00
stronk7 d7f7862841 Not used finally by the theme... Removed. 2005-06-10 14:50:58 +00:00
stronk7 725200b03a Problems with 1.5Beta backups solved by Bobo. B-) 2005-06-10 14:16:12 +00:00
stronk7 c40bd6ac20 Generate properly RSS column. It was breaking styled (colored) rows. 2005-06-10 09:03:02 +00:00
bobopinna b2d5b92b96 Fixed a problem with some 1.5 beta backup files 2005-06-10 06:35:01 +00:00
stronk7 f2bb550ac0 Some classes added and minor chage to links to be able to
difference them form plain text.
2005-06-10 00:47:01 +00:00
stronk7 58ed94fd9c Some classes and styles added to show everything properly. 2005-06-09 23:50:33 +00:00
stronk7 ea858dd7a0 Added one deleted br... 2005-06-09 23:39:27 +00:00
stronk7 5821db186e Now icons, comments and ratings are showed properly in entrylist format.
Bug 3455
(http://moodle.org/bugs/bug.php?op=show&bugid=3455)
2005-06-09 23:30:08 +00:00
stronk7 14e02c54ef Separate icons a bit... 2005-06-09 23:27:19 +00:00
michaelpenne 4226f24829 Bug: fixed a problem with the date completed value and a problem with processing shortanswer/numerical question types 2005-06-09 21:54:55 +00:00
michaelpenne ebe63af223 Discovered a bug with lesson grades. While calculating the grade, intval was used to truncate the decimals from the grade. intavl is now replaced with round. round will now round the grade to 5 decimal places. The database only holds int(3). So, this has been changed to float to hold decimal numbers. We have found this to be much more accurate when converting the stored percentage in the database back to a point value (before this fix, users were getting numbers like 46.5 points instead of their original 47 points due to an inaccurate percent value). Files changed for this fix include:
locallib.php
report.php
version.php
view.php
db/mysql.php
db/mysql.sql
db/postgres7.php
db/postgres7.sql
2005-06-09 21:26:21 +00:00
moodler 24fc7d266f Disabled tab hover for IE since it slowed down the whole site 2005-06-09 21:07:02 +00:00
thepurpleblob f04eda06be Added a chunk on defensive/secure coding. With due deference to
Petr Skoda from which a lot of it was stolen.
2005-06-09 18:51:49 +00:00
stronk7 957f001f04 Fixed two typos (in one line!) :-o
Testing changes before commit is always interesting... :-P
2005-06-09 16:27:46 +00:00
moodler 716111f60e file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:04 +0000 2005-06-09 16:12:20 +00:00
moodler 58c28f0269 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:01 +0000 2005-06-09 16:12:20 +00:00
thepurpleblob 382c50809b Removed use of assert function for session objects. 2005-06-09 13:58:41 +00:00
moodler 3608b0f6f5 Hide tabs when setting up initial admin user 2005-06-09 13:00:36 +00:00
moodler 014d8a9ab8 If no courses exist, then present a helpful button to make one. 2005-06-09 12:53:56 +00:00
moodler 377c6fa437 Default theme during setup is standardwhite, not standard 2005-06-09 12:53:14 +00:00
moodler 2535c5777d file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-07-07 16:14:36 +0000 2005-06-09 11:58:07 +00:00
thepurpleblob 2fbfbcdd7b Use of 'register_global' type functionality removed and replaced with
required_param() and optional_param().
2005-06-09 09:39:26 +00:00
moodler d3753d4c37 Added some extra images I fotgot 2005-06-09 09:24:52 +00:00
moodler ab8734e816 Removed moz styles 2005-06-09 09:23:47 +00:00
moodler 9c855ec4f0 Added Eloy's excellent Wood theme!!!
Eloy, can you add a README.txt ?
2005-06-09 08:28:28 +00:00
moodler b7e133298d Fixed display bug in themes list 2005-06-09 08:23:26 +00:00
moodler 2e0a1774b9 Removed some old themes not being maintained yet 2005-06-09 08:09:13 +00:00
moodler cf885520e7 Updated Metal for 1.5 2005-06-09 08:06:40 +00:00
moodler 36c83a5057 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-09 06:23:49 +00:00
moodler ba98e4b6b1 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-09 06:23:48 +00:00
moodler 478625d186 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:05 +0000 2005-06-09 04:07:19 +00:00
moodler d19a3b1fe2 file rqp.html was added on branch MOODLE_15_STABLE on 2005-07-07 16:59:03 +0000 2005-06-09 04:07:16 +00:00
paca70 c313f211c0 Updates 2005-06-08 17:22:00 +00:00
moodler a0c477deef Merged changes from HEAD 2005-06-08 14:30:00 +00:00
watcanz 5b0f288d95 Fixed image path problem
Restored tags for moodle heading.
2005-06-08 12:20:54 +00:00
moodler 441c87bcb9 file createcontent.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:47:50 +00:00
moodler ce111128d3 file respondenteligible.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler b22f9bac31 file realm.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler 13c9933c8f file closedate.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler b9b203357e file mods.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler 499ac00af3 file resume.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler d4268066cb file opendate.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-08 10:10:25 +00:00
moodler a9da346030 file background.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 08:55:35 +00:00
moodler 7fdd558af0 file teachers.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler c90930bf10 file textformat.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler c53755d7c4 file uploadusers.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
moodler 4249a9a8d0 file text.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 06:17:52 +00:00
paca70 bc55fae7b9 Updates 2005-06-08 06:02:52 +00:00
moodler 5f0ea84bbb file default.ttf was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:53 +0000 2005-06-08 05:20:15 +00:00
moodler 9f8d9231fe file message.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:52 +0000 2005-06-08 05:20:15 +00:00
moodler edf1c2d30d file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 81bfee2947 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 8df6f37dc0 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 58cfbd4a84 file block_category_tree.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 7530078651 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:51 +0000 2005-06-08 05:20:15 +00:00
moodler 6406c48cd8 file richtext.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 04:06:46 +00:00
moodler 58f33bd7cd file questions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler 317311d645 file writing.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler b4e2cde355 file reading.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-08 02:26:48 +00:00
moodler cb5e71a635 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-07 23:46:10 +00:00
moodler c8b589bb29 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:49 +0000 2005-06-07 23:46:10 +00:00
martinlanghoff 9fd70b1ac3 Merged in readfile_chunked() patch -- much lower memory footprint, same CPU usage, works around PHP5 bug in readfile() 2005-06-07 23:43:04 +00:00
martinlanghoff 6eabcba137 Auth fields were not being re-fetched on every login as expected. Fixed. 2005-06-07 23:19:45 +00:00
gustav_delius 530b8335f1 Fixed a typo 2005-06-07 21:43:32 +00:00
michaelpenne 699c28ff92 Bug 1650 fixed: help button calling the wrong help file 2005-06-07 20:58:47 +00:00
michaelpenne 257f67470b Bug 3022 Fixed: got rid of uppercase tags 2005-06-07 20:48:41 +00:00
gustav_delius 2876a137d8 Temporarily switching off "Save as new question" button until bug 3445 is fixed 2005-06-07 20:44:59 +00:00
paca70 52c1134dd4 Added missing as junk words 2005-06-07 17:30:38 +00:00
moodler ffb7b55ea4 file groupmode.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 09206b48f2 file mods.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 2fea1d8480 file groupmodeforce.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 17:03:42 +00:00
moodler 30cb9ab4b5 file cookies.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler da84ec2f77 file html.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler 615824e242 file index.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler f08cbc787f file directorypaths.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:54 +00:00
moodler 69ae7d08af file philosophy.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
moodler 25a9851943 file intro.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
moodler 73afb49262 file other.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:30:00 +0000 2005-06-07 15:44:53 +00:00
zibas 22d2a0fdc4 Applied the patch submitted with bug #3344. This fixes PHP5 issues while retaining PHP4 functionality.
Also altered the bb5.5 importer:
Respecting certain "visible" flags. Made the default course properties match the importer capabilities better.
Fixed the resource summaries.
Converting Bb "Staff Information."
2005-06-07 14:21:19 +00:00
thepurpleblob f24e18ee85 Added assert_var_set() - part of trying to deprecate required_variable (which
is used in two different ways)
2005-06-07 12:35:39 +00:00
thepurpleblob b20337b888 Converted required_variable() to required_param() 2005-06-07 09:43:45 +00:00
moodler e35720ef02 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-07 07:28:04 +00:00
martinlanghoff 472b380522 Added missing auth strings for field locks 2005-06-07 05:04:35 +00:00
martinlanghoff 094f41207b Fixes db upgrade for config_plugins failure on unquoted data - discussed at http://moodle.org/mod/forum/discuss.php?d=25122 2005-06-07 03:40:20 +00:00
moodler d1c56c3939 file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler c156eef71e file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 7e022f9345 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler edab76787e file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 815a82746b file student.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 354673e358 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler e135be2639 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:59 +0000 2005-06-07 00:34:53 +00:00
moodler 67353f95ef file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:47 +0000 2005-06-06 23:53:01 +00:00
moodler 460f06f2a5 file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 65b4efb096 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 1f93813304 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 95f0d3d486 file student.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler 7ba1e94556 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:46 +0000 2005-06-06 23:53:01 +00:00
moodler a7a97c933c file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 22:45:10 +00:00
moodler e29ed82aee file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:49 +0000 2005-06-06 22:45:10 +00:00
michaelpenne eba970bffc BUG FIX for Bug #3059: if there is not a response to an answer, the response gets set to an empty string 2005-06-06 18:26:49 +00:00
ecastrolt 05786bc6fd *** empty log message *** 2005-06-06 18:15:37 +00:00
ecastrolt 357d789540 *** empty log message *** 2005-06-06 18:04:54 +00:00
michaelpenne 855aa8f8d6 bug fix: updated the link to the grade book 2005-06-06 17:35:02 +00:00
bobopinna 42d3772a3f Fixed a typo 2005-06-06 11:58:59 +00:00
ikawhero 3d1f6ce525 Fixed a few minor typos. 2005-06-06 10:08:27 +00:00
ikawhero 1244ed75d2 Check to see if a scale grade exists for the given grade and if not set it
to an empty string. This should never occur through normal use but just
in case ...
2005-06-06 09:45:17 +00:00
moodler ac757a9fad file category.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 06:16:27 +00:00
moodler 194726468d file weight.html was added on branch MOODLE_15_STABLE on 2005-06-08 14:29:50 +0000 2005-06-06 06:16:27 +00:00
moodler ecbf88d217 Bumping release name 2005-06-06 06:09:07 +00:00
moodler bc9cec3cd6 Updated version for release 1.5 2005-06-06 05:21:11 +00:00
moodler f9cff66906 Merged all the changes in HEAD until now 2005-06-06 05:04:31 +00:00
ikawhero 5450baa28a Added a 'Save Changes' button to the top of the page for those of us too
lazy to scroll!
2005-06-06 03:35:28 +00:00
ikawhero 422eaecc13 Check array is initialised. Bug 3424. 2005-06-06 00:39:35 +00:00
moodler e10ed4e667 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:48 +0000 2005-06-06 00:13:12 +00:00
moodler ecfbaad4b4 file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:28 +0000 2005-06-06 00:13:12 +00:00
ikawhero e4cedd797a Errors will now return to course page instead of site. Related to Bug 3418. 2005-06-05 23:57:19 +00:00
gustav_delius 9dadc1a89e Regrading now used the proper session mechanism. Also it now works with old-style attempts which have only a single state. 2005-06-05 20:37:52 +00:00
moodler 5b0ae9d41c file student.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 20:33:47 +00:00
gustav_delius 2ac3cee674 Restoring of user attempts and states disabled for now, see bug 3159 2005-06-05 20:25:04 +00:00
gustav_delius f3bb54f36f Fixed typo 2005-06-05 20:19:17 +00:00
moodler e8edd40064 file exceptions.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler b1120b07c9 file letter.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 00fcb704d3 file weight.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 2b1ebff73c file preferences.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:09 +00:00
moodler 26549e7692 file category.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:56:08 +00:00
moodler efd780a339 file teacher.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:13 +0000 2005-06-05 19:24:45 +00:00
urs_hunkler 0c4a965346 mainly corretion for a disply problem of the course page in MSIE plus some minor changes. 2005-06-05 16:38:01 +00:00
gustav_delius 7371dc44d0 removed some unnecessary fields 2005-06-05 15:52:18 +00:00
gustav_delius 16a8215aa1 just fixing some comments 2005-06-05 15:37:22 +00:00
gustav_delius 6d0ea08227 taken out a notice to temporarily fix bug 3130 2005-06-05 15:08:34 +00:00
gustav_delius 85a6b27786 Fixed the calculated question editing wizard temporarily for Moodle 1.5 until Julian gets his new version ready. 2005-06-05 14:14:54 +00:00
gustav_delius db7f11c3d7 fixed some typos 2005-06-05 13:59:37 +00:00
gustav_delius 98133a3eec Random questions now store both the wrapped question id and the response in the same state record, essentially going back to Julian's model. 2005-06-05 13:22:03 +00:00
moodler 52de50d2d5 Just a small fix for people tracking betas 2005-06-05 13:11:05 +00:00
gustav_delius 122299654f Improved the display of readonly form fields in questions so that they are no longer grey on grey 2005-06-05 12:03:50 +00:00
gustav_delius 52fa982eba Change to when newly created states get saved
Changes to what is printed during regrade
2005-06-05 11:49:32 +00:00
stronk7 5eab4b5c43 Removed reference to Journal (Diario in es) 2005-06-05 10:09:32 +00:00
stronk7 e68e7af8ed Merged from HEAD... 2005-06-05 09:46:33 +00:00
moodler 2e52e3c14b file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:55:11 +00:00
moodler 2be7e8b347 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:49:33 +00:00
moodler b8187e5ae0 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:30 +0000 2005-06-05 08:44:38 +00:00
thepurpleblob 74be4f9a8d Removed reference to Journals. 2005-06-05 07:37:16 +00:00
moodler cb21e292fa file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:31 +0000 2005-06-05 07:31:24 +00:00
moodler 3a8e6b5f4b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:31 +0000 2005-06-05 07:31:24 +00:00
thepurpleblob cdd11103b7 Removed reference to Journal 2005-06-05 07:24:46 +00:00
thepurpleblob dab41ccfdc Removed reference to Journal. 2005-06-05 07:11:44 +00:00
thepurpleblob 49e8438753 Removed references to Journal. 2005-06-05 06:51:09 +00:00
thepurpleblob 12c3f08cb0 Removed reference to journals. 2005-06-05 06:47:02 +00:00
thepurpleblob 2f6b3b1966 Removed references to journals. 2005-06-05 06:44:09 +00:00
moodler 9d39272ded Added support for $CFG->allowobjectembed in the GUI 2005-06-05 05:39:25 +00:00
moodler 14bc8df569 Added $CFG->allowobjectembed in weblib.php so that these can be selected by admin 2005-06-05 05:25:02 +00:00
moodler 6dca5725ea file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-05 03:48:41 +00:00
moodler bf3932fc42 file nextpageaction.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-05 03:48:40 +00:00
moodler 2c8a7e32db Turn off script access for autoembedded flash SC126 2005-06-05 03:31:44 +00:00
gustav_delius 3c76674f76 More graceful behaviour when there are not enough questions for the random questions. 2005-06-04 22:43:28 +00:00
ecastrolt fba559da7a *** empty log message *** 2005-06-04 21:07:57 +00:00
moodler 468f3c1cc4 file webquest.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler fe0df5f546 file tex.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 370454c947 file workshop.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 3010db0e48 file wiki.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler ae6a28706b file survey.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 63fd025955 file scorm.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler f5e2a57092 file resource.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:16 +0000 2005-06-04 20:05:32 +00:00
moodler 1edf4fcaa6 file mediaplugin.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 191ac5e692 file questionnaire.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler ad50e44876 file label.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 1a833b187a file multilang.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 5983511872 file message.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler df644c8811 file pix.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler 52183b89b1 file lesson.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:32 +00:00
moodler cfe70c4f90 file exercise.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 98a68126ed file journal.php.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 39538ed31a file grades.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 42bdd31e68 file hotpot.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler d0fa39395c file install.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 737d922645 file glossary.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:15 +0000 2005-06-04 20:05:31 +00:00
moodler 5e3b40221a file block_rss_client.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler fd91ea6371 file block_course_list.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler cee15d365b file countries.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler c29cc45005 file block_online_users.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 2db4405ca0 file attendance.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 2e3d0ff372 file editor.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler fe2c9820e8 file algebra.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 72df247c50 file censor.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler d35f4bcabd file enrol_paypal.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler a46eb2ee08 file enrol_ldap.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 18ac802f51 file dialogue.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler d520a0a173 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler e264c29fa1 file appointment.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 406d542d00 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler a02176516b file block_course_summary.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 27b0d869e6 file admin.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 21971c4ed0 file calendar.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler e1c24a9dba file block_social_activities.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler dcb1b0cbdf file enrol_database.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 9c94bb15aa file enrol_flatfile.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler bec8a5ca4b file error.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler cee8d7fb63 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler 5a67edcc09 file enrol_internal.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
moodler c5f0945604 file block_section_links.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:14 +0000 2005-06-04 20:05:31 +00:00
defacer ff642e93ba Fixing all Tidy warnings in this page. This has to be A Good Thing. 2005-06-04 17:43:52 +00:00
gustav_delius 5ebe26c7d0 fixed typo 2005-06-04 17:22:00 +00:00
gustav_delius a616b09790 The versioning code will not be in Moodle 1.5 2005-06-04 17:13:26 +00:00
stronk7 e64dfa80dd Changed name of the container category a bit and avoided one notice. 2005-06-04 15:37:40 +00:00
gustav_delius 4a4d46cade slight improvement of layout 2005-06-04 11:40:57 +00:00
moodler 905746771f file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:05 +0000 2005-06-04 11:25:51 +00:00
moodler 82a838920f file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:03 +0000 2005-06-04 11:25:51 +00:00
moodler d913dc4244 file enrol_authorize.php was added on branch MOODLE_15_STABLE on 2005-06-06 05:04:03 +0000 2005-06-04 11:25:51 +00:00
gustav_delius 4aa3ac1609 Print notice on preview when secure window will be used for students
Also improved some language strings
2005-06-04 11:19:48 +00:00
gustav_delius 775d4dd817 Print notice on preview when secure window will be used for students 2005-06-04 11:16:37 +00:00
gustav_delius e0b0ef395f Show link to attempts list only if student attemtps exist. 2005-06-04 11:10:36 +00:00
mindforge a21fc2b7c9 Cleaned up and documented regrading code. 2005-06-04 11:04:00 +00:00
mindforge aee2784751 Manual regrading page implemented. 2005-06-04 10:58:31 +00:00
ikawhero 3e41bf36a3 Link to add new courses only shown to course creators when there are no
courses available. Bug 3420.
2005-06-04 10:39:57 +00:00
urs_hunkler cf26a12c62 corrected width of the middle column in course view. 2005-06-04 09:16:20 +00:00
gustav_delius 90abc87934 attempts.php has moved to report/overview/report.php 2005-06-04 09:10:13 +00:00
gustav_delius 8c040068ca Removed the quiz upgrade warning. 2005-06-04 09:07:40 +00:00
gustav_delius 67a8ef4235 removing the old statistics reports 2005-06-04 08:58:16 +00:00
gustav_delius c17f91905a put back the overview report folder 2005-06-04 08:55:37 +00:00
gustav_delius 1b2457c312 added regrading page 2005-06-04 08:54:56 +00:00
gustav_delius 2fbd81b02d Fixed bug 3410. Admins are no longer shown ALL categories in drop-down menu. 2005-06-04 08:47:33 +00:00
gustav_delius e729020eda Improve alignment in table in mod.html for IE
Missing questions lead to notice rather than fatal error
Attempts report now moved to reports/overview
put in empty regrading page for Julian to complete
Moved some of the styles out of styles.php into standard style
Fixed error on reviewquestion.php
put infobox on reviewquestion.php
fixed <form> tag on item analysis report
2005-06-04 08:30:49 +00:00
defacer 6e296332ca Fix for bug 3316: Now students which have attempted the quiz but have
since been unenrolled from the course are shown with a dimmed style.
2005-06-04 00:18:57 +00:00
defacer 94640580f3 Forgot to prepend country codes to the teacher list as well when sorting. 2005-06-03 23:40:19 +00:00
defacer 113130bd32 Adding one new string: "Show $a per page" 2005-06-03 23:31:06 +00:00
defacer 1443433431 CSS styles for the revamped user/index.php 2005-06-03 23:26:31 +00:00
defacer 4fd2dff9fe A big big big patch:
Converted the students table to use the new table class

Fixed bug 3114: when sorting by country, prepend country code to the country name

Fixed behavior of autohiding teacher list; now there is a hide/show icon to be
consistent with the rest of Moodle

Fixed "show all" option so that the user can control it instead of relying on auto behavior

Fixed HTML, removed all inline styles

Improved accessibility (alt tags for images)

Updated obsolete optional_variable calls to optional_param

Several cosmetic and other improvements I 've already forgotten :P
2005-06-03 23:19:12 +00:00
defacer 680da3b4af Added function that exports current selection for first/last initial
Added extra CSS class to initial bars (can now differentiate first/last)
2005-06-03 22:46:54 +00:00
moodler dc0d77760a file maxpages.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler c700b6c43b file review.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler adb2f6e2fc file highscores.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:49 +0000 2005-06-03 21:53:41 +00:00
moodler def727dc7d file maxpages.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-03 21:53:41 +00:00
moodler c5d16299de file review.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:29 +0000 2005-06-03 21:53:41 +00:00
moodler 93b2625047 file highscores.html was added on branch MOODLE_15_STABLE on 2005-06-06 05:03:28 +0000 2005-06-03 21:53:41 +00:00
gustav_delius b769175004 The popup window didn't always close. 2005-06-03 20:43:50 +00:00
stronk7 816f68c8aa Upgraded backup/restore TODO list. Only two points remains open:
- SCORM: restore. See bug 3404.
- QUIZ: 1.5 <=> 1.5 backup and restore. Gustav's team is polishing it.

Bump to 1.5 (Final)
2005-06-03 17:43:46 +00:00
stronk7 c3f0763f7b Added support for forum->trackingtype 2005-06-03 17:35:27 +00:00
moodler e0dcb5734f Merged many language files from HEAD 2005-06-03 17:17:15 +00:00
stronk7 321aae1d8b Small typo, preventing group events to be restored properly.
Records in backup_ids table must use the name of the table
without the prefix as name. Bug 3360. Thanks Jon.
(http://moodle.org/bugs/bug.php?op=show&bugid=3360)
2005-06-03 16:43:26 +00:00
ikawhero 9bb32eb744 Meaningful string shown in breadcrumb and heading when editing site topic.
Bug 3408.
2005-06-03 14:41:35 +00:00
mindforge 2c20f70dca Fix for bug #3357. Random questions now check properly if a question is already in use. 2005-06-03 12:56:53 +00:00
stronk7 a3247baa3a Bump!
Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!
2005-06-03 12:49:16 +00:00
stronk7 c0624b017b Deletion (or move to site course) of orphan categories
executed in the upgrade process. Now we shouldn't have
such orphans anymore! B-)

Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Important NOTE: In the upgrade code for postgreSQL I've included
                some steps that weren't up to date. They seem to
                standard SQL code but they should be tested
                properly.... hope all works!
2005-06-03 12:47:44 +00:00
moodler 81b1951adf Labels can now have apostrophes again! :-) bug 3411 2005-06-03 12:21:16 +00:00
moodler 73c1140d6a Fix for Bug 3036. (SE) 2005-06-03 08:15:38 +00:00
moodler 20fe7276ff Merged French from HEAD 2005-06-03 05:25:09 +00:00
moodler dd8fb6e848 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 1ece975598 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 4308feffbd file height.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 66674833f6 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 578462059e file width.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler bd8b6c6f0e file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler e5e43b42ec file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler f309507a9f file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-06-03 03:55:38 +00:00
moodler 5c3cf81dfb file navigation.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 5bf11225c4 file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler c10f0b5df7 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler abac5c2107 file mediaplayers.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler d6c5e20610 file forceplugins.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler b9b4610906 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 03231ca0b3 file outputformat.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
moodler 6d53e3b77d file shownextquiz.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-06-03 03:55:38 +00:00
martinlanghoff a0b22b3218 auth/ldap : minor html fix 2005-06-03 03:41:16 +00:00
moodler 0db7057a78 file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 7bc02fa10a file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 01737697a4 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 22:31:41 +00:00
moodler 2eb6412ef8 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:40 +00:00
moodler 4fad751ed9 file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:40 +00:00
moodler e32e7ca09c file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-02 22:31:34 +00:00
moodler da7d308c32 Disable Attendance in core tables because the module has been deleted 2005-06-02 15:01:12 +00:00
moodler 4a625f17af Remove attendance from 1.5 too 2005-06-02 14:59:38 +00:00
exe-cutor 9fa1dad004 Adapted Shibboleth authentication to new field lock/update mechanism by Martin 2005-06-02 14:34:22 +00:00
moodler 651dfa878e file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-06-02 13:57:26 +00:00
urs_hunkler 50da41e264 some theme optimizations: manly font-sizes and the list pages. 2005-06-02 12:31:35 +00:00
martinlanghoff 6406bef13e Fixed typo in configuration of ldap_memberattribute for RFC2307-style LDAP servers. Should fix handling of iscreator group. Thanks to Teemu Haapoja for the diagnosis and fix. 2005-06-02 09:55:06 +00:00
martinlanghoff 5a2cfa7efb Version bump triggers config_plugin migration for locks and field mapping. 2005-06-02 04:25:36 +00:00
moodler 0bb30298d0 file nelements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 37553f8493 file managing2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 1761c44531 file regrading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler d1869b995e file managing.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 5e01a18606 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 1ef00c891f file password.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 2d910a2d08 file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:18 +00:00
moodler 3b61c3c5d6 file elements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler 17dec907b9 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler c90daf0b4b file comparisonofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-06-02 02:46:17 +00:00
moodler a69f876e76 file removepages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler a960f39fbb file wikitype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 474ce18912 file strippages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 6c8f0ed5a8 file initialcontent.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 5ace54167e file htmlmode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler d981f1b6e3 file wikilinkoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 0810574be1 file ewikiacceptbinary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler ee5b1788f7 file setpageflags.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 9a6222dd38 file revertpages.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 46cc45f293 file checklinks.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 8e8380fb97 file revertauthorfieldpattern.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 5aef10640e file wikiname.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler b34d0917a6 file howtowiki.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler 1067cb28f1 file wikiusage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler f94e02f057 file studentadminoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-06-02 02:46:17 +00:00
moodler fec8049d34 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler a111b749fc file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler f42449f77e file nelements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler cc13541244 file takeownership.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler d67ad45602 file submissionofdescriptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 0ef063825f file moreinfo.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 09be6630de file usemax.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 26b9be1d7a file regrading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 10692d97e6 file leaguetablenames.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler f327821e4e file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler b9fc85815e file usepassword.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 312f8b5410 file specimen.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 6d163e8a59 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 888faa0559 file managing.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 62dec3d6b5 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 06979a542b file password.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 2f4ae7848b file gradinggrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:06 +0000 2005-06-02 02:46:17 +00:00
moodler 9199bfc986 file elements.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 3fde815636 file administration.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler ea6787cb2f file comparisonofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 4f0f9f52c6 file info.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler e628acf30d file dialoguetype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 97d94ab7f2 file addsubject.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 675522cb1b file multiple.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 69f2570655 file deleteafter.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler 9206c92895 file closedialogue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler d3f8a394bc file maildefault.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-06-02 02:46:17 +00:00
moodler de735d30a8 file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-06-02 00:52:14 +00:00
moodler 8afa0586cc file reportselector.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-06-02 00:52:14 +00:00
gustav_delius 72a054b9f9 Fixed bug 3393 2005-06-01 20:07:50 +00:00
zibas 643f215f0a file xsl_emulate_xslt.inc was added on branch MOODLE_15_STABLE on 2005-06-07 14:21:19 +0000 2005-06-01 19:32:52 +00:00
moodler 6acfcce9a8 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-06-01 19:24:17 +00:00
gustav_delius 6be3c99802 replaced some error() by redirect() 2005-06-01 18:34:24 +00:00
gustav_delius 20101a6092 Improved error messages a bit 2005-06-01 18:16:52 +00:00
moodler 4d044e6e84 SQL should not assume mdl_ prefix on tables (bug 3390) 2005-06-01 08:08:37 +00:00
martinlanghoff d08c400d31 auth fieldlocks: smarter handling of UI strings for user fields 2005-06-01 08:05:28 +00:00
martinlanghoff 770764f392 config_plugins settings migration -- this is a DB upgrade block 2005-06-01 07:47:49 +00:00
martinlanghoff 4f6af1254b get_config() now preserves CFG if DB fails or is empty 2005-06-01 06:57:09 +00:00
martinlanghoff e3cd7f35b9 config_plugin with auth/shibboleth
* config.html now uses print_auth_lock_options()
 * config.html better handling of default vars, and removed some warnings
 * lib.php uses new config_plugin vars
2005-06-01 06:23:44 +00:00
martinlanghoff 2ba609cc8c config_plugin work
* lang updates and lang-related fixes
 * auth/db uses the new convention
2005-06-01 06:01:29 +00:00
gustav_delius 3d7a1cbf2b A missing ! led to bug 3377 2005-06-01 05:56:46 +00:00
martinlanghoff b50eee807b Almost there with config_plugins work!
* More solid checking for auth GET/POST var.
 * print_auth_lock_options() now handles user field mapping options for LDAP and similar modules
 * user mapping options have moved to config_plugins table
 * LDAP module has migrated to using new field mapping vars -- simplified config.html a lot
 * strings are mostly resolved
 * a bit of work pending on CAS and DB modules
 * need an upgrade path for field-mapping config entries -- limited to LDAP only
2005-06-01 04:44:17 +00:00
martinlanghoff 6b64601101 Bumping the revision for the config_plugins table. 2005-06-01 02:28:33 +00:00
moodler 28d21ce79e file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:27 +0000 2005-06-01 01:15:06 +00:00
moodler 07387b3124 file gradingstrategy.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-06-01 01:15:06 +00:00
moodler df699778c4 file autocontinue.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 2d7915885a file browsemode.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9d24e151bc file height.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9fbed4dc26 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 9896fa3de5 file mods.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler ea5cb3bbde file width.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 732216d72a file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler b08068e829 file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 1622a2d06f file grademethod.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 23:34:37 +00:00
moodler 0d4a213943 Better handling of dates when timedue isn't set 2005-05-31 23:28:08 +00:00
moodler 98823d2ac0 Hide due date when there isn;t one 2005-05-31 23:18:54 +00:00
moodler facf76eede Added event handling from trunk 2005-05-31 23:02:44 +00:00
moodler 41591a4a17 file categories_edit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler cd22423ceb file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 479c8e5958 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 271228d527 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler d592dc462d file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler bfaf3c876b file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
moodler 3954fbf809 file rqp.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:15 +0000 2005-05-31 22:48:21 +00:00
stronk7 c63bcbf27c Complete refactor of quiz_delete_course()
Now this function works following this:
- Iterate over every quiz category in the course (following parent-child relationships).
- If the category is being used*, move it to site level (under a container category) and
      mark it as published.
- If the category isn't being used, remove** it completely (questions, instances...) and
      re-parent its child categories.
- Feedback is shown in a table detailing all the changes performed.

* One category is being used if it has one question that is being used in any quiz,
  independently of its publish status.
** Removal of categories (and associated questions) has benn improved but, it won't
  be perfect until bug 3366 was solved.

Tested against some large courses with reused questions and multiple levels of
categories. Seems to work but

PLEASE TEST IT AND SEND ANY FEEDBACK TO BUG 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)

Exactly this function is going to be used in the upgrade script to solve
the orphan categories issue and it must work perfectly!
2005-05-31 22:31:22 +00:00
stronk7 0242dc70f3 Four new strings added to show the work done
against quiz_categories when a course is deleted.
Part of bug 2459
(http://moodle.org/bugs/bug.php?op=show&bugid=2459)
2005-05-31 21:26:09 +00:00
moodler 25957101a8 file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 20:23:27 +00:00
moodler 6d079b698f file responsestable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-31 20:23:27 +00:00
stronk7 0456f1c62a Simplify the quizzes_category_used() function.
I was using the $excluded parameter to avoid
loops between categories. A->B->A. Think we can
assume such loops won't exist, so I've deleted
the $excluded use.
2005-05-31 16:30:36 +00:00
thepurpleblob 5c6c7224eb Took out dos line endings 2005-05-31 15:17:20 +00:00
thepurpleblob a40014f758 Removed spurious aligns in <input> tags for optional units - now formats
properly in Apple Safari
2005-05-31 14:45:05 +00:00
thepurpleblob 53b9b145ab Fixed incorrect !important tags in CSS 2005-05-31 14:21:28 +00:00
thepurpleblob ded3459821 'Fixed' quizzes_category_used declaration to make it work. Based on it only
being called in one place. Might need a 'proper' fix though, but this gets us
moving!
2005-05-31 13:34:15 +00:00
thepurpleblob 331b64ac3f Removed uneccessary call-time pass by reference. 2005-05-31 10:11:00 +00:00
thepurpleblob b89246267b Checks import/export class file actually exists before trying to include it. 2005-05-31 10:02:48 +00:00
martinlanghoff cdbba24134 First cut of field locks support. functional but missing strings and support for LDAP/DB modules.
- Extended set_config()
- Implemented get_config() which takes over $CFG loading in setup.php
- admin/auth.php has special handling if post vars starting in pluginconfig_
- admin/auth.php print_auth_lock_options() prints a form fragment -- being called from most plugins now
- user/edit.php follows the new convention when locking down fields, both javascript UI and on POST.
2005-05-31 05:36:41 +00:00
moodler fa84313875 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:06 +0000 2005-05-31 05:13:33 +00:00
moodler e2d02f322e file timezones.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:06 +0000 2005-05-31 05:13:33 +00:00
moodler 2b545bff3b file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler ec0e8976e9 file block_glossary_random.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 24ad970192 file grades.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 83bf0c7ac3 file block_html.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 2a55ad8736 file block_quiz_results.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:05 +0000 2005-05-31 05:13:33 +00:00
moodler 25b68ad11e Fix for SC122 2005-05-31 04:36:04 +00:00
moodler d347fbefd6 file qtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler 6124af76ab file questionnaireid.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler 893e4ecc77 file qmanage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler f5925fe29a file respondenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:08 +0000 2005-05-31 01:48:07 +00:00
moodler d07e7183e6 file casesensitive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler c82589c6b5 file editalways.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 2c0436b1a6 file importcategories.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler a1e04405ff file aliases2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 0516af71ef file globalglossary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 8f459f900b file usedynalink.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 866885022f file aliases.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 350ad0ef85 file entbypage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6b73dbaa20 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 291f7bd8ba file studentcanpost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 40fb06a8d0 file allowprintview.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler c4563fe0fb file shows.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 17c9ed588d file mainglossary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 9480b8f1f4 file linkcategory.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6c45d66129 file allowduplicatedentries.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler ae29b65979 file destination.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler e43dd3defa file defaultapproval.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 02c71b5a1e file filetoimport.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler b6f1f29147 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 6b9ab9e4fc file attachment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler cffd20cede file usedynalinkentry.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 3372fd30ff file description.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 8353441838 file allowcomments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 5d213075c3 file displayformat.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler 5da1448d69 file fullmatch.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-31 01:48:07 +00:00
moodler cc082cb176 file dynsection.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 53e1d700bf file hours.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler b9441c6e63 file maxgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 98aa5c1e21 file choosedays.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler fa43dc51f8 file grade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler ef405b2a1b file autoattend.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-31 01:48:07 +00:00
moodler 58c4dc24c7 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 00:12:27 +00:00
moodler 741ee69fad file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-31 00:12:27 +00:00
moodler 754e6ee60b file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-31 00:12:27 +00:00
moodler 780d107619 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-31 00:12:27 +00:00
stronk7 61842c3a01 Added the sort_categories_by_tree() function that
returns an ordered array of categories following
the parent-child relationships. It doesn't forget
any category and returns all the categories passed
although their parent were incorrect. Try to build
as much tree structure as possible.
2005-05-30 23:56:38 +00:00
mjollnir_ 8c28ed7838 Fixing up problem in generate_email_processing_address -- using sitesecret rather than siteidentifier 2005-05-30 23:25:56 +00:00
martinlanghoff 8bfac5b93d Fixed field lenght in config_plugins 2005-05-30 22:30:50 +00:00
stronk7 6d64a7091d Deleting one debug message... 2005-05-30 22:27:20 +00:00
stronk7 22ad0a2e45 Now the quizzes_category_used() function supports searching
for uses recursively plus an array of excluded categories.

Needed to solve bug 2459...in progress.
2005-05-30 22:25:52 +00:00
moodler e8eaff0171 file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-05-30 22:07:12 +00:00
moodler f3bfb270af Fixed _new with _blank 2005-05-30 18:42:41 +00:00
moodler 260d699c17 Added limit of 900 characters to subject line, to prevent overflows 2005-05-30 18:09:03 +00:00
defacer bb25fc1bca Fix for bug 3364:
The Great Global $course Hack strikes again. I had to put in another instance
of the hack for course themes to work in the "calendar" part of the course.

Hopefully some day we 'll do all that "correctly"! (search for "hack" in
weblib and despair).
2005-05-30 13:31:44 +00:00
defacer 7bc4158521 More correct handling of group events, we cannot simply omit them because
the course has "no groups" UNLESS groupmodeforce == 1 as well.

Sadly, this severely weakens the performace optimizations :(

See bug 3303 for an example of what the problem was before.
2005-05-30 12:40:44 +00:00
mudrd8mz a0028106e3 Included fix by Jaime Villate posted Sunday, 8 May 2005, 10:45 PM 2005-05-30 09:31:28 +00:00
martinlanghoff fc0ee03121 Capture the outcome of the config_plugins table creation. 2005-05-30 05:24:19 +00:00
martinlanghoff 987d846223 Created config_plugins table to manage configuration entries on a per-module/plugin. This breaks the rules a little bit, but it has been discussed with MD. 2005-05-30 05:10:22 +00:00
martinlanghoff e7c83f42ef enrol/ldap offers enrol_allowinternal config option as it should. 2005-05-30 03:51:07 +00:00
moodler c8198e1311 file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-30 01:49:53 +00:00
moodler 17620a4193 file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-30 01:49:53 +00:00
moodler 61b7abf279 file summary.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-30 01:49:52 +00:00
moodler 4be10f9c9d file package.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-30 01:49:52 +00:00
watcanz 606f29ff1d styles_layout.css updated for new sideblocks code. header.html removed logo. 2005-05-30 00:02:22 +00:00
ecastrolt 6a43c2aae4 *** empty log message *** 2005-05-29 20:50:14 +00:00
ecastrolt 29a4e4e556 *** empty log message *** 2005-05-29 19:45:14 +00:00
ecastrolt c65086aab0 *** empty log message *** 2005-05-29 19:36:41 +00:00
stronk7 6d85897f87 Added the quizzes_category_used() to detect the list of
quizzes that are using questions from one category.
It relies in the quizzes_question_used() function. Will
be use in the 'orphan_categories' bug (#2459)

(http://moodle.org/bugs/bug.php?op=show&bugid=2459)
2005-05-29 18:58:14 +00:00
stronk7 83c5e8f6b1 format_string() applied once deleting courses...
Merged from HEAD
2005-05-29 17:32:18 +00:00
moodler 3d8a508910 Fix for bug 3350 where older SESSION->wantsurl was hanging around 2005-05-29 07:58:37 +00:00
moodler cb9b40a576 file book.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:14 +0000 2005-05-29 07:07:18 +00:00
moodler e21964e8b0 file timerestrict.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler d15938ce5f file limit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler 22f52e2bf3 file options.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:37 +00:00
moodler b6f8c22bc3 file chatting.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:05 +0000 2005-05-29 06:48:36 +00:00
moodler c89d8d7636 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler a17794496c file commentinline.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler e545ae1876 file types.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 236ec5b9b6 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler bae75cb826 file emailteachers.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 89552fc789 file search.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:04 +0000 2005-05-29 06:48:36 +00:00
moodler 3684c9f4e2 file authchange.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler db3a8b8a59 file advancedsettings.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler 2b82654492 file cost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:03 +0000 2005-05-29 06:48:36 +00:00
moodler bb4e105b49 FIxed a problem when stripping terms from search string for highlighting 2005-05-29 04:04:31 +00:00
defacer 1819221450 Now tablelib allows the GET variables that control sorting etc. to be
configured. Essential in order to allow two independent tables in the same
screen, which is required for /user/index.php.
2005-05-28 21:22:45 +00:00
defacer 4ac7b06a76 Revisited blocks administration page!
* Incompatible blocks which have been disabled during the upgrade
     from Moodle 1.4 can now be deleted.

   * Incompatible blocks (if any) are presented in a separate table
     and are clearly marked as such.

   * Using the new table class.

   * Improved visuals.

   * Fixed HTML and updated obsolete coding conventions all around.
2005-05-28 18:36:01 +00:00
defacer 379298d6ae NEW STRING ADDED for admin/blocks.php
One string we no longer use removed.
2005-05-28 18:28:26 +00:00
defacer 49307babf5 New styles for the revisited admin/blocks page, coming up next. 2005-05-28 18:22:28 +00:00
moodler ac6e8f1133 $CFG->ignoresesskey can override all sesskey checking 2005-05-28 14:02:53 +00:00
moodler ce34811cdd Addes mms protocol 2005-05-28 13:29:37 +00:00
moodler 51f2f92ca5 file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-28 08:58:56 +00:00
moodler 3bcee5d4c7 Fixed a missing global 2005-05-28 06:38:10 +00:00
moodler 07a5d7cb3e file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-28 01:27:05 +00:00
moodler 7adc79d42c file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:24 +0000 2005-05-28 01:27:05 +00:00
moodler 069577e929 file ungradedassessments_teacher.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler cffe2e51bd file usepassword.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:13 +0000 2005-05-28 01:04:34 +00:00
moodler 317dbb6f67 file submissionofexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 0c06ed4263 file selfassessment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler abb8d37084 file leaguetable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler f0cffb1e49 file resubmit.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 16b96bf3c9 file gradingsubmissions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler e47e30a11f file overallocation.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 4431f7188f file nattachments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 7f6d1637d0 file includeteachersgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 7e01657166 file nassessmentsofteachersexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 51cb63459b file includeself.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 5992f232aa file ungradedassessments_student.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 688d2f7d5b file teacherweight.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler b5cb37d9ea file specimen.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler e892f04d05 file showinggrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 01c784002a file nassessmentsofstudentsubmissions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 267a7811fc file ungradedassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:34 +00:00
moodler 0ac29d7f60 file gradingassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler c975e6afad file finalgrades.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 80118a25eb file breakdownoffinalgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 13bc6270d6 file calculatingfinalgrade.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 85b2ee359b file editingacomment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 9cd2e8b3d4 file grading.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:12 +0000 2005-05-28 01:04:33 +00:00
moodler 2dcc168e63 file assessmentofexamples.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler 05f64e893d file addcommenttobank.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler f40c81f9b7 file analysisofassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler fac82b6f2a file agreeassessments.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler d55bcca3a5 file assignmenttype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler bbc338767a file addingacomment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
moodler e88d8a3aa4 file anonymous.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:11 +0000 2005-05-28 01:04:33 +00:00
urs_hunkler bb0ceba26d I removed the inlinestyle for the userentry in the sideblock "online user" and added the class "listentry" to the div. The properties of th inline style are now defined in styles_layout.css and stylews_fonts.css. 2005-05-27 17:24:27 +00:00
moodler 2b63e793a2 file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-27 17:18:47 +00:00
moodler e0514c228d file analysistable.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-27 17:18:47 +00:00
moodler 8f92195276 Added an extra style based on the glossary id which might allow
some nice effects.  This idea should probably be extended later,
perhaps with the ability to define the style in the glossary itself.
2005-05-27 14:56:43 +00:00
moodler 4a21ecc113 file block_search_forums.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:19 +0000 2005-05-27 12:25:38 +00:00
moodler 3217988a86 file emailprotect.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:19 +0000 2005-05-27 12:25:38 +00:00
bobopinna 65497822b9 Added AICC API to bug fix a problem with AICC package launch 2005-05-27 09:07:56 +00:00
bobopinna 5bd1036974 file aicc.js.php was added on branch MOODLE_15_STABLE on 2005-05-27 09:07:56 +0000 2005-05-27 09:05:04 +00:00
moodler 01d08c35d6 file quiz_analysis.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:00 +0000 2005-05-27 07:39:59 +00:00
moodler 8415a420df file authchange.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-26 23:05:29 +00:00
moodler fa614c0451 file cost.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:14 +0000 2005-05-26 22:40:02 +00:00
moodler 532231e9e8 file retake.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 20:46:47 +00:00
moodler 98dba5cea6 file retake.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 20:46:47 +00:00
moodler d29f2368de file slideshow.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 18:50:09 +00:00
moodler 234c4e5276 file slideshow.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 18:50:09 +00:00
moodler f5e5206c00 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:26 +0000 2005-05-26 17:30:03 +00:00
moodler d19c7d4459 file useeditor.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:23 +0000 2005-05-26 17:30:03 +00:00
moodler 50e20544b7 Merged stability fix from HEAD 2005-05-26 15:25:47 +00:00
moodler a4f3ee5b1e New string for registration 2005-05-26 14:45:15 +00:00
moodler 192d6a6ea9 A little note for admins looking in the source who might be really annoyed. :-) 2005-05-26 14:44:51 +00:00
moodler 705e3a7f76 Registration is now a bit more in-your-face.
Every six months you get prompted by a slightly annoying button on
the admin page to re-register.  Once you've done so it disappears.
2005-05-26 14:43:31 +00:00
moodler d716e12ac4 More little fixes for the calendar days thing 2005-05-26 12:53:11 +00:00
moodler e8b9d71f03 Fixed Strange calls to get_string for weekdays in calendar
http://moodle.org/mod/forum/discuss.php?d=24476
2005-05-26 12:33:10 +00:00
ethem aabfe78ed5 $CFG 2005-05-26 11:22:30 +00:00
bobopinna e41e727022 Fixed some bugs. Now AICC seems to work. 2005-05-26 10:01:56 +00:00
ethem fcee2e9780 Fixing enrol_allowinternal. 2005-05-26 07:35:45 +00:00
gustav_delius 94acf297c6 Better name for the new function 2005-05-26 07:18:25 +00:00
gustav_delius b94257273c Disabled versioning and re-grading until it is fixed. 2005-05-26 07:11:20 +00:00
moodler fc071f0cfc file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:55 +0000 2005-05-25 22:17:18 +00:00
gustav_delius 6680874953 reverted to version before Julian's attempt at fixing bug 3311 2005-05-25 21:41:39 +00:00
defacer dbf8f55057 Er, fix for bug 3334 once more.
If at first you don't succeed...
2005-05-25 17:54:58 +00:00
moodler 477647c885 Updated from HEAD 2005-05-25 16:29:16 +00:00
moodler 8fe1a6a72f file grades.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:59 +0000 2005-05-25 16:28:09 +00:00
moodler 6f1a4d5f55 file lesson.php was added on branch MOODLE_15_STABLE on 2005-06-03 17:16:59 +0000 2005-05-25 16:28:09 +00:00
moodler f96e334571 SOme cleaning up of the code 2005-05-25 16:25:43 +00:00
defacer 14b7da1527 Fixing the other half of bug 3334. 2005-05-25 14:26:28 +00:00
defacer 101415b202 Fixing one half of bug 3334 with the patch provided by the reporter.
Also fixing another unfriendly behavior in that screen.
2005-05-25 14:22:05 +00:00
gustav_delius 11e9ca5af1 updated database creation by exporting from my database that was created by updating from 1.4 2005-05-25 06:02:03 +00:00
moodler a4369a6ac4 file penaltyscheme.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler f0eda67f46 file questionsperpage.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-05-25 02:24:44 +00:00
moodler 3ea6ab6652 file rqp.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:10 +0000 2005-05-25 02:24:44 +00:00
moodler 4597517cf5 file penalty.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler d7a8d13cb4 file itemanalysis.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler 289d8f834b file analysisoptions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler cb219861eb file adaptive.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:09 +0000 2005-05-25 02:24:44 +00:00
moodler 206f13e19a file ratings.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 141f2eb969 file rssarticles.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 54c362fdaf file maxattachmentsize.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler b7f3681c1d file forumtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler c71b977964 file subscription2.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler f86849b8e5 file subscription.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 0d07ff6170 file allowdiscussions.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler cf1db6bad7 file rsstype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 7e85d1188a file attachment.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
moodler 76de166ee1 file trackingtype.html was added on branch MOODLE_15_STABLE on 2005-06-03 17:17:07 +0000 2005-05-25 02:24:44 +00:00
defacer 76e2cb0a9b Backporting changes from HEAD 2005-05-24 18:58:02 +00:00
moodler 1b0649d558 Moved some things from People block to Administration. Each of them
will probably be tweaked a little more still.
2005-05-24 16:55:48 +00:00
thepurpleblob 05ac097e4c Now includes missing text re. missingword format suppporting short answer questions. 2005-05-24 16:53:34 +00:00
gustav_delius 4c21136a5b fixed bug 3329 2005-05-24 16:07:10 +00:00
bobopinna d38835ab1b Fixed some typo and bugs
Added support to Moodle 1.4 backup
2005-05-24 15:29:51 +00:00
thepurpleblob b0fe38fc78 Put addslashes around question name - truncate at unlucky point could break sql. 2005-05-24 15:17:07 +00:00
julmis ce2e784b47 Adding buttons:
- nolink
- search and replace
2005-05-24 14:21:00 +00:00
gustav_delius 9114cce39b file report.php was added on branch MOODLE_15_STABLE on 2005-06-04 08:54:56 +0000 2005-05-06 06:24:04 +00:00
gustav_delius 0d00dc375f file report.php was added on branch MOODLE_15_STABLE on 2005-06-04 08:55:37 +0000 2005-05-06 06:24:04 +00:00
moodler 27437410f4 file survey.php was added on branch MOODLE_15_STABLE on 2006-03-10 07:27:54 +0000 2005-04-05 20:54:43 +00:00
73394 changed files with 963573 additions and 9217827 deletions
-185
View File
@@ -1,185 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Generates tsconfig.aliases.json for cross-component TypeScript imports.
*
* Moodle ESM source files can import from other components using the alias
* scheme @moodle/lms/<component>/* (e.g. @moodle/lms/core/SomeUtil). This
* file reads the Moodle component registry (.grunt/components.js), finds every
* component that has a js/esm/src/ directory, and writes the corresponding
* TypeScript path mappings to tsconfig.aliases.json.
*
* tsconfig.json extends tsconfig.aliases.json, so TypeScript picks up the
* mappings automatically. The file is skipped if its content is unchanged, to
* avoid unnecessary rebuilds.
*
* This must run before esbuild compilation. The Grunt `jsconfig` task calls
* generateAliases() so that both jsconfig.json and tsconfig.aliases.json are
* kept in sync. The `react` task depends on `jsconfig`, so aliases are always
* up to date before a React build.
*
* @copyright 2026 Adrian Greeve <adrian@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
import fs from "fs";
import path from "path";
import { createRequire } from "module";
const rootDir = process.cwd();
const tsconfigOut = path.join(rootDir, "tsconfig.aliases.json");
const TS_ALIASES_WARNING =
"// WARNING: Do not edit this file manually. It is generated by `grunt jsconfig`.\n";
/**
* Load Moodle component paths from `.grunt/components.js`.
*
* @returns {Record<string, string>} Map of component paths to component names.
*/
function loadComponentPathMap() {
const require = createRequire(import.meta.url);
// Load Moodle's components data from .grunt/components.js.
const { fetchComponentData } = require(
path.join(process.cwd(), ".grunt", "components.js")
);
// Format: `{ components: { "public/lib": "core", ... } }`.
const componentsData = fetchComponentData().components;
// Expected:
// `{ "public/lib": "core", "public/ai": "core_ai", ... }`.
return componentsData;
}
/**
* Compare two TypeScript `paths` maps for exact equality.
*
* @param {Record<string, string[]>} a First paths map.
* @param {Record<string, string[]>} b Second paths map.
* @returns {boolean} True when keys and values match in order.
*/
function pathsEqual(a, b) {
const aKeys = Object.keys(a);
const bKeys = Object.keys(b);
if (aKeys.length !== bKeys.length) {
return false;
}
for (const key of aKeys) {
if (!Object.prototype.hasOwnProperty.call(b, key)) {
return false;
}
const aArr = a[key] ?? [];
const bArr = b[key] ?? [];
if (aArr.length !== bArr.length) {
return false;
}
for (let i = 0; i < aArr.length; i++) {
if (aArr[i] !== bArr[i]) {
return false;
}
}
}
return true;
}
/**
* Parse JSON content and tolerate line comments.
*
* @param {string} content Raw JSON/JSONC file content.
* @returns {unknown}
*/
function parseJsonWithComments(content) {
const stripped = content
.replace(/^\uFEFF/, "")
.replace(/^\s*\/\/.*$/gm, "");
return JSON.parse(stripped);
}
/**
* Convert JSON output so single-value arrays are rendered on one line.
*
* @param {unknown} obj Data to stringify.
* @returns {string} JSON string with flattened single-value arrays.
*/
function stringifyFlatArrays(obj) {
const json = JSON.stringify(obj, null, 2);
return TS_ALIASES_WARNING + json.replace(/\[\s+\"(.*?)\"\s+\]/g, '["$1"]') + "\n";
}
/**
* Generate `tsconfig.aliases.json` from Moodle component metadata.
*
* Includes core aliases, discovers plugin React source aliases, and skips
* rewriting when aliases have not changed.
*
* @returns {void}
*/
export function generateAliases() {
const componentPathMap = loadComponentPathMap();
// Build TS paths for tsconfig.aliases.json
/** @type {Record<string, string[]>} */
const tsPaths = {
// Always include core alias.
"@moodle/lms/core/*": ["./public/lib/js/esm/src/*"],
};
for (const [componentPath, componentName] of Object.entries(componentPathMap)) {
const runtimeAliasKey = `@moodle/lms/${componentName}/*`;
const targetPattern = `./${path
.join(componentPath, "js", "esm", "src", "*")
.replace(/\\/g, "/")}`;
tsPaths[runtimeAliasKey] = [targetPattern];
}
const tsconfig = {
compilerOptions: { paths: tsPaths },
};
// If tsconfig paths didn't change, skip regeneration
let previousPaths = null;
let hasWarningHeader = false;
if (fs.existsSync(tsconfigOut)) {
try {
const previousContent = fs.readFileSync(tsconfigOut, "utf8");
hasWarningHeader = previousContent.startsWith(TS_ALIASES_WARNING);
const previousTsconfig = /** @type {{compilerOptions?: {paths?: Record<string, string[]>}}} */ (
parseJsonWithComments(previousContent)
);
previousPaths = previousTsconfig.compilerOptions?.paths ?? {};
} catch {
// ignore parse errors and treat as "no previous cache"
previousPaths = null;
}
}
if (previousPaths && hasWarningHeader && pathsEqual(previousPaths, tsPaths)) {
console.log("✓ Generating tsconfig.aliases.json was skipped. No alias modifications detected.");
return;
}
// Write tsconfig.aliases.json
fs.writeFileSync(tsconfigOut, stringifyFlatArrays(tsconfig));
console.log("✓ Generating tsconfig.aliases.json");
}
-324
View File
@@ -1,324 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Core esbuild library for Moodle ESM components.
*
* This is the single source of all build logic. The Grunt tasks
* (.grunt/tasks/react.js) import from here rather than duplicating
* configuration or build steps.
*
* Source layout convention:
* <component>/js/esm/src/**\/*.{ts,tsx} → <component>/js/esm/build/**\/*.js
*
* Exports:
* createBuildConfig(isDev) esbuild config object; pass isDev=true
* to disable minification / add sourcemaps.
* buildPluginComponents(isDev) Glob for every js/esm/src tree across
* core and plugins, compile all in parallel.
* buildSingleFile(filePath, isDev) Compile one source file; used by the
* Grunt watch task on incremental changes.
* watchComponents(isDev) Start esbuild's native watch mode so the
* compiler rebuilds affected files on save.
* resolveComponentPaths(entry) Map an absolute source path to its
* relative input path and output path.
*
* @copyright 2026 Adrian Greeve <adrian@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
import esbuild from "esbuild";
import { glob } from "glob";
import chalk from "chalk";
import path from "path";
import fs from "fs";
const projectRoot = process.cwd();
/**
* Resolve a path from the current project root.
*
* @param {...string} segments Path segments to resolve.
* @returns {string} Absolute path from project root.
*/
const fromRoot = (...segments) => path.resolve(projectRoot, ...segments);
/**
* Create an incremental dot progress indicator.
* Prints one dot per completed build and wraps lines for readability.
*
* @param {number} total Total number of items to build.
* @returns {{ start: () => void, tick: () => void, succeed: (msg: string) => void, fail: (msg: string) => void }}
*/
function createDotProgress(total) {
const dotsPerLine = 60;
let printed = 0;
return {
start: () => {
process.stdout.write(`${chalk.cyan("Building")} `);
},
tick: () => {
printed++;
process.stdout.write(chalk.cyan("."));
if (printed % dotsPerLine === 0 && printed < total) {
process.stdout.write(` ${chalk.dim(`[${printed}/${total}]`)}\n`);
}
},
succeed: (msg) => {
process.stdout.write(` ${chalk.dim(`[${printed}/${total}]`)}\n`);
process.stdout.write(`${chalk.green("✓")} ${msg}\n`);
},
fail: (msg) => {
process.stdout.write(` ${chalk.dim(`[${printed}/${total}]`)}\n`);
process.stdout.write(`${chalk.red("✗")} ${msg}\n`);
},
};
}
/**
* Build a single React component entry file.
*
* @param {string} entry Absolute entry file path.
* @param {import('esbuild').BuildOptions} buildConfig Shared esbuild configuration.
* @returns {Promise<{file: string, output?: string, error: Error|null}>}
*/
async function buildComponent(entry, buildConfig) {
const resolved = resolveComponentPaths(entry);
if (!resolved) {
return { file: entry, error: new Error(`Unknown path pattern: ${entry}`) };
}
const { file, output } = resolved;
fs.mkdirSync(path.dirname(output), { recursive: true });
try {
await esbuild.build({
...buildConfig,
entryPoints: [entry],
outfile: output,
});
return { file, output, error: null };
} catch (error) {
return { file, error: error instanceof Error ? error : new Error(String(error)) };
}
}
/**
* Resolve source and output paths for a component entry.
*
* @param {string} entry Absolute component source path.
* @returns {{file: string, output: string} | null} Relative file info and output path, or null for unsupported paths.
*/
export function resolveComponentPaths(entry) {
const rel = path.relative(projectRoot, entry);
if (rel.includes(path.join('esm', 'src'))) {
const [part, rawFile] = rel.split(path.join('esm', 'src'));
const file = rawFile.replace(/^[\/\\]/, '');
return {
file,
output: fromRoot(part, 'esm', 'build', file.replace(/\.(ts|tsx)$/, '.js')),
};
}
return null;
}
/**
* Run all builds in parallel, showing incremental dot progress.
*
* @param {string[]} entryPoints Absolute entry file paths.
* @param {import('esbuild').BuildOptions} buildConfig Shared esbuild configuration.
* @returns {Promise<{errors: {file: string, output?: string, error: Error|null}[]}>}
*/
async function runParallelBuilds(entryPoints, buildConfig) {
const total = entryPoints.length;
/** @type {{file: string, output?: string, error: Error|null}[]} */
const errors = [];
const startTime = Date.now();
const progress = createDotProgress(total);
progress.start();
await Promise.all(entryPoints.map(async (entry) => {
const result = await buildComponent(entry, buildConfig);
if (result.error) {
errors.push(result);
}
progress.tick();
}));
const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
const succeeded = total - errors.length;
if (errors.length > 0) {
progress.fail(`${succeeded}/${total} built · ${elapsed}s`);
for (const e of errors) {
console.error(chalk.red(`${e.file}: ${e.error?.message ?? ''}`));
}
} else {
progress.succeed(chalk.bold(`${total} components built`) + chalk.dim(` · ${elapsed}s`));
}
return { errors };
}
/**
* Create the shared esbuild build configuration.
*
* @param {boolean} isDev Whether development mode is enabled.
* @returns {import('esbuild').BuildOptions} esbuild configuration object.
*/
export function createBuildConfig(isDev) {
return {
bundle: true,
format: "esm",
external: ["react", "react/*", "react-dom", "react-dom/*", "@moodlehq/design-system", "@moodlehq/design-system/*", "@moodle/lms", "@moodle/lms/*"],
jsx: "automatic",
minify: !isDev,
sourcemap: isDev ? 'inline' : false,
jsxDev: isDev,
keepNames: isDev,
treeShaking: !isDev,
define: { 'process.env.NODE_ENV': isDev ? '"development"' : '"production"' },
};
}
/**
* Build all plugin and core React components.
*
* @param {boolean} isDev Whether development mode is enabled.
* @returns {Promise<void>}
*/
export async function buildPluginComponents(isDev) {
console.log(chalk.green('> Building components...'));
const entryPoints = glob.sync("**/js/esm/src/**/*.{ts,tsx}", {
cwd: projectRoot,
absolute: true,
ignore: [
`${process.cwd()}/node_modules/**`,
`${process.cwd()}/vendor/**`,
],
});
const buildConfig = createBuildConfig(isDev);
const { errors } = await runParallelBuilds(entryPoints, buildConfig);
if (errors.length > 0) {
throw new Error(`React build failed: ${errors.length} component(s) could not be built`);
}
}
/**
* Start esbuild in native watch mode over all React components.
*
* Creates a single incremental build context for all entry points so that
* esbuild can reuse its internal graph between rebuilds instead of starting
* from scratch on every file change.
*
* @param {boolean} isDev Whether to build in development mode.
* @param {((srcFiles: string[]) => void) | undefined} [onRebuild] Called with the rebuilt entry source
* files (relative to project root) after each non-initial successful rebuild. Use this to run
* follow-up tasks such as linting without coupling them to this module.
* @returns {Promise<import('esbuild').BuildContext|null>} The active context, or null if no source files exist.
*/
export async function watchComponents(isDev, onRebuild) {
const entryPoints = glob.sync("**/js/esm/src/**/*.{ts,tsx}", {
cwd: projectRoot,
absolute: true,
ignore: [
`${process.cwd()}/node_modules/**`,
`${process.cwd()}/vendor/**`,
],
});
if (entryPoints.length === 0) {
return null;
}
const buildConfig = createBuildConfig(isDev);
// Map each source file to an {in, out} pair so esbuild can write each
// component to its custom output directory while sharing a single context.
// The 'out' path is relative to outdir (projectRoot) and has no extension —
// esbuild appends the appropriate extension automatically.
// Build entry pairs and ensure output directories exist in a single pass.
const entryPairs = entryPoints.flatMap(entry => {
const resolved = resolveComponentPaths(entry);
if (!resolved) {
return [];
}
fs.mkdirSync(path.dirname(resolved.output), { recursive: true });
return [{ in: entry, out: path.relative(projectRoot, resolved.output).replace(/\.js$/, '') }];
});
// Report build results to the terminal after every build (initial and on each change).
// metafile: true populates result.metafile.outputs so we know which files were written.
// On a rebuild only the affected outputs appear, so it effectively names the changed file.
/** @type {import('esbuild').Plugin} */
const watchReporter = {
name: 'watch-reporter',
setup(build) {
let isInitial = true;
let startTime = 0;
build.onStart(() => {
startTime = Date.now();
});
build.onEnd(result => {
const now = new Date().toLocaleTimeString();
const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
if (result.errors.length > 0) {
console.error(chalk.red(`[${now}] ✗ Build failed (${result.errors.length} error(s))`) + chalk.dim(` · ${elapsed}s`));
return;
}
const outputs = Object.keys(result.metafile?.outputs ?? {});
console.log(chalk.green(`[${now}] ✓ ${outputs.length} component(s) built`) + chalk.dim(` · ${elapsed}s`));
if (isInitial) {
isInitial = false;
} else if (onRebuild) {
// entryPoint is the source file (relative to projectRoot) that triggered
// this rebuild. Pass it to the caller so they can run follow-up tasks
// (e.g. linting) without this module needing to know about them.
const srcFiles = Object.values(result.metafile?.outputs ?? {})
.map(output => output.entryPoint)
.filter(/** @param {string|undefined} f */ f => !!f);
onRebuild(/** @type {string[]} */ (srcFiles));
}
});
},
};
const ctx = await esbuild.context({
...buildConfig,
entryPoints: entryPairs,
outdir: projectRoot,
metafile: true,
plugins: [watchReporter],
});
await ctx.watch();
return ctx;
}
-266
View File
@@ -1,266 +0,0 @@
{
'plugins': [
'@babel',
'promise',
'jsdoc'
],
'extends': [
'eslint:recommended',
'plugin:promise/recommended'
],
'env': {
'browser': true,
// Enable ES6+ features by default.
// See http://eslint.org/docs/user-guide/configuring#specifying-environments
// Note: The YUI override must exactly match this when disabling the ES6+ version because those features are not supported by Shifter.
'es2020': true,
'amd': true
},
'globals': {
'M': true,
'Y': true
},
// Warn about unused eslint-disable statements.
'reportUnusedDisableDirectives': true,
'rules': {
// See http://eslint.org/docs/rules/ for all rules and explanations of all
// rules.
// === Possible Errors ===
'comma-dangle': 'off',
'no-console': 'error',
'no-empty': 'warn',
'no-extra-parens': 'off',
'no-prototype-builtins': 'off',
'no-unreachable': 'warn',
// === Best Practices ===
// (these mostly match our jshint config)
'array-callback-return': 'warn',
'block-scoped-var': 'warn',
'complexity': 'warn',
'consistent-return': 'warn',
'curly': 'error',
'dot-notation': 'warn',
'no-alert': 'warn',
'no-caller': 'error',
'no-div-regex': 'error',
'no-empty-function': 'warn',
'no-eq-null': 'error',
'no-eval': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'warn',
'no-floating-decimal': 'warn',
'no-global-assign': 'warn',
'no-implied-eval': 'error',
'no-invalid-this': 'error',
'no-iterator': 'error',
'no-labels': 'error',
'no-loop-func': 'error',
'no-multi-spaces': 'warn',
'no-multi-str': 'error',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-octal-escape': 'error',
'no-proto': 'error',
'no-redeclare': 'warn',
'no-restricted-globals': ['error', { 'name': 'Notification' }],
'no-return-assign': 'error',
'no-script-url': 'error',
'no-self-compare': 'error',
'no-sequences': 'warn',
'no-throw-literal': 'warn',
'no-unmodified-loop-condition': 'error',
'no-unused-expressions': 'error',
'no-useless-call': 'warn',
'no-useless-escape': 'warn',
'wrap-iife': ['error', 'any'],
// === Variables ===
'no-undef-init': 'error',
'no-unused-vars': ['error', { 'caughtErrors': 'none' }],
// === Stylistic Issues ===
'array-bracket-spacing': 'warn',
'block-spacing': 'warn',
'brace-style': ['warn', '1tbs'],
'camelcase': 'warn',
'capitalized-comments': ['warn', 'always', { 'ignoreConsecutiveComments': true }],
'comma-spacing': ['warn', { 'before': false, 'after': true }],
'comma-style': ['warn', 'last'],
'computed-property-spacing': 'error',
'consistent-this': 'off',
'eol-last': 'off',
'func-call-spacing': ['warn', 'never'],
'func-names': 'off',
'func-style': 'off',
// indent currently not doing well with our wrapping style, so disabled.
'indent': ['off', 4, { 'SwitchCase': 1 }],
'key-spacing': ['warn', { 'beforeColon': false, 'afterColon': true, 'mode': minimum }],
'keyword-spacing': 'warn',
'linebreak-style': ['error', 'unix'],
'lines-around-comment': 'off',
'max-len': ['error', 132],
'max-lines': 'off',
'max-depth': 'warn',
'max-nested-callbacks': ['warn', 5],
'max-params': 'off',
'max-statements': 'off',
'max-statements-per-line': ['warn', { max: 2 }],
'new-cap': ['warn', { 'properties': false }],
'new-parens': 'warn',
'newline-per-chained-call': 'off',
'no-array-constructor': 'off',
'no-bitwise': 'error',
'no-continue': 'off',
'no-inline-comments': 'off',
'no-lonely-if': 'off',
'no-mixed-operators': 'off',
'no-multiple-empty-lines': 'warn',
'no-negated-condition': 'off',
'no-nested-ternary': 'warn',
'no-new-object': 'off',
'no-plusplus': 'off',
'no-tabs': 'error',
'no-ternary': 'off',
'no-trailing-spaces': 'error',
'no-underscore-dangle': 'off',
'no-unneeded-ternary': 'off',
'no-whitespace-before-property': 'warn',
'object-curly-newline': 'off',
'object-curly-spacing': 'warn',
'object-property-newline': 'off',
'one-var': 'off',
'one-var-declaration-per-line': ['warn', 'initializations'],
'operator-assignment': 'off',
'operator-linebreak': 'off',
'padded-blocks': 'off',
'quote-props': ['warn', 'as-needed', {'unnecessary': false, 'keywords': true, 'numbers': true}],
'quotes': 'off',
'semi': 'error',
'semi-spacing': ['warn', {'before': false, 'after': true}],
'sort-vars': 'off',
'space-before-blocks': 'warn',
'space-before-function-paren': ['warn', 'never'],
'space-in-parens': 'warn',
'space-infix-ops': 'warn',
'space-unary-ops': 'warn',
'spaced-comment': 'warn',
'unicode-bom': 'error',
'wrap-regex': 'off',
// === Promises (override plugin:promise/recommended) ===
'promise/always-return': 'warn',
'promise/no-return-wrap': 'warn',
'promise/param-names': 'warn',
'promise/catch-or-return': ['warn', {terminationMethod: ['catch', 'fail', 'always'], allowFinally: true}],
'promise/no-native': 'warn',
'promise/avoid-new': 'warn',
// === Deprecations ===
"no-restricted-properties": ['warn', {
'object': 'M',
'property': 'str',
'message': 'Use "core/str" module or M.util.get_string()'
}],
},
overrides: [
{
files: ["**/yui/src/**/*.js"],
'env': {
// Disable ES6+ for YUI files.
'es2020': false,
},
// Disable some rules which we can't safely define for YUI rollups.
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'no-unused-expressions': 'off',
// === JSDocs ===
"jsdoc/check-access": 'off',
"jsdoc/check-alignment": 'off',
"jsdoc/check-param-names": 'off',
"jsdoc/check-property-names": 'off',
"jsdoc/empty-tags": 'off',
"jsdoc/implements-on-classes": 'off',
"jsdoc/multiline-blocks": 'off',
"jsdoc/require-jsdoc": 'off',
"jsdoc/require-param": 'off',
"jsdoc/require-param-name": 'off',
"jsdoc/require-param-type": 'off',
"jsdoc/require-property": 'off',
"jsdoc/require-property-name": 'off',
"jsdoc/require-property-type": 'off',
}
},
{
files: ["**/amd/src/*.js", "**/amd/src/**/*.js", "Gruntfile.js", ".grunt/*.js", ".grunt/tasks/*.js", "jsdoc.conf.js"],
// We're using babel transpiling so use their parser
// for linting.
parser: '@babel/eslint-parser',
// Check AMD with some slightly stricter rules.
rules: {
'no-implicit-globals': 'error',
// Disable all of the rules that have babel versions.
'new-cap': 'off',
// Not using this rule for the time being because it isn't
// compatible with jQuery and ES6.
'no-invalid-this': 'off',
'object-curly-spacing': 'off',
'quotes': 'off',
'semi': 'off',
'no-unused-expressions': 'off',
// Enable all of the babel version of these rules.
'@babel/new-cap': ['warn', { 'properties': false }],
// Not using this rule for the time being because it isn't
// compatible with jQuery and ES6.
'@babel/no-invalid-this': 'off',
'@babel/object-curly-spacing': 'warn',
'@babel/semi': 'error',
'@babel/no-unused-expressions': 'error',
// === Promises ===
// We have Promise now that we're using ES6.
'promise/no-native': 'off',
'promise/avoid-new': 'off',
// === JSDocs ===
'jsdoc/check-access': 'error',
'jsdoc/check-alignment': 1, // Recommended.
'jsdoc/check-param-names': 'error',
'jsdoc/check-property-names': 'error',
'jsdoc/empty-tags': 'error',
'jsdoc/implements-on-classes': 'error',
'jsdoc/multiline-blocks': 'error',
'jsdoc/require-jsdoc': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param-type': 'error',
'jsdoc/require-property': 'error',
'jsdoc/require-property-name': 'error',
'jsdoc/require-property-type': 'error'
},
parserOptions: {
'sourceType': 'module',
'requireConfigFile': false
}
},
{
files: ["**/*.ts", "**/*.tsx"],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
jsx: true
},
allowSyntheticDefaultImports: true
},
rules: {
// promise/no-native crashes on TypeScript ASTs (same reason it is
// disabled for AMD files above). Native Promises are standard in TS.
'promise/no-native': 'off',
'promise/avoid-new': 'off',
}
}
]
}
-24
View File
@@ -1,24 +0,0 @@
{
"indentation": ["on",{
"Feature": 0,
"Background": 2,
"Scenario": 2,
"Examples": 4,
"example": 6,
"Step": 4,
"given": 4,
"and": 4
}],
"no-dupe-feature-names": "on",
"no-dupe-scenario-names": "off",
"no-empty-file": "on",
"no-files-without-scenarios": "on",
"no-multiple-empty-lines": "on",
"no-partially-commented-tag-lines": "on",
"no-trailing-spaces": "on",
"no-unnamed-features": "on",
"no-unnamed-scenarios": "on",
"no-scenario-outlines-without-examples": "on",
"no-examples-in-scenarios": "on",
"new-line-at-eof": ["on", "yes"]
}
-9
View File
@@ -1,9 +0,0 @@
**/yui/build/** -diff
**/amd/build/** -diff
**.js.map -diff
**-min.js -diff
**.min.js -diff
# Remove composer lock file changes from standard diff views.
/composer.lock -diff
/lib/js/bundles/*/*.js -diff
-2
View File
@@ -1,2 +0,0 @@
# Primary donations pages.
custom: ["https://moodle.com/donations/"]
-7
View File
@@ -1,7 +0,0 @@
*** PLEASE DO NOT OPEN PULL REQUESTS VIA GITHUB ***
The moodle.git repository at Github is just a mirror of the official repository. We do not accept pull requests at Github.
See CONTRIBUTING.md guidelines for how to contribute patches for Moodle. Thank you.
--
-6
View File
@@ -1,6 +0,0 @@
> [!IMPORTANT]
> PLEASE DO NOT PUBLISH SECURITY FINDINGS PUBLICLY.
If you discover a potential security issue, please report it via our [Security Submission Form](https://moodle.org/security/report).
For more information about our security processes and responsible disclosure policy, see the [Security Procedures documentation](https://moodledev.io/general/development/process/security).
-1
View File
@@ -1 +0,0 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1231.24 314.44" preserveAspectRatio="xMinYMid meet"><defs><style>.cls-1{fill:#f48020;}.cls-2,.cls-3{fill:#383738;stroke:#4a4a4c;}.cls-2{stroke-width:2.37px;}.cls-3{stroke-width:2.38px;}.cls-4{fill:#585858;}</style></defs><title>Moodle_Logo_UseonBlack_RGB</title><path class="cls-1" d="M1086.3,235.34a53.42,53.42,0,0,0,16.71,29q13.26,12.27,29.48,12.27,11.29,0,24.56-5.89,16.23-6.88,16.22-16.22l58-.49q-12.29,29-41.76,45.2-27.52,15.23-60.43,15.24-42.25,0-70-26.29t-27.75-68.54q0-43.73,27.75-69.51t72-25.8q48.15,0,75.17,31.94,25.07,29.47,25.06,79.1Zm89.91-33.91q-3.43-17.69-14.73-29-12.8-12.28-29.49-12.29-17.21,0-28.74,11.79t-15.47,29.48Z"/><path class="cls-1" d="M965.45,308.54V0h55V308.54Z"/><path class="cls-1" d="M892.69,308.54V290.36q-7.38,9.83-25.06,15.72a92.31,92.31,0,0,1-30,5.41q-39.31,0-63.13-27T750.7,217.65q0-39.3,23.34-65.84t62.15-26.53q43.71,0,56.5,23.58V0h53.55V308.54Zm0-102.68q0-14.75-14-28.26t-28.74-13.51q-21.12,0-33.41,17.2-10.8,15.24-10.8,37.33,0,21.63,10.8,36.85,12.29,17.71,33.41,17.69,12.78,0,27.76-12t15-24.81Z"/><path class="cls-1" d="M647,313.45q-41.77,0-69-26.53t-27.27-68.3q0-41.73,27.27-68.28t69-26.53q41.75,0,69.27,26.53t27.52,68.28q0,41.79-27.52,68.3T647,313.45ZM647,168q-19.89,0-30.58,15.07t-10.68,35.79q0,20.73,9.94,35.05,11.43,16.31,31.32,16.28t31.32-16.28q10.44-14.31,10.44-35.05t-9.94-35Q667.42,168,647,168Z"/><path class="cls-1" d="M448.07,313.45q-41.76,0-69-26.53t-27.27-68.3q0-41.73,27.27-68.28t69-26.53q41.74,0,69.28,26.53t27.5,68.28q0,41.79-27.5,68.3T448.07,313.45Zm0-145.43q-19.89,0-30.59,15.07t-10.69,35.79q0,20.73,9.94,35.05,11.43,16.31,31.34,16.28t31.32-16.28q10.42-14.31,10.44-35.05t-9.94-35Q468.45,168,448.07,168Z"/><path class="cls-1" d="M288.89,309.11V201q0-33.9-28-33.9t-28,33.9V309.11h-55V201q0-33.9-27.52-33.9-28,0-28,33.9V309.11h-55V194.65q0-35.37,24.56-53.54,21.61-16.22,58.46-16.22,37.35,0,55,19.16,15.23-19.16,55.51-19.16,36.86,0,58.45,16.22,24.57,18.16,24.57,53.54V309.11Z"/><path class="cls-2" d="M.76,145.76"/><path class="cls-3" d="M1.73,145.32"/><path class="cls-4" d="M173.86,116.85l55.08-40.1-.7-2.44C135,83.92,80.42,96.44,0,144.13l.73,2.38,21-.67c15.17.52,30.85,1.26,46,1.32-1,24.09.83,32.65.83,32.65,51.92,17.58,101.22,1.53,127.14-43.9A248.72,248.72,0,0,0,173.86,116.85Z"/><path class="cls-4" d="M113.78,110c-.3-1.08-2.23-1.48-4.28-.9a4.73,4.73,0,0,0-3.14,2.19c-18.53,5-49.16,13.72-70.73,21l-1.33.45c-16.68,5.61-24.73,8.49-25.22,12.55-2.29,18.44-.87,42.18-.86,42.48l.19,6.4c-9.74,27.56.06,49.6,8.38,69.77.06-24.92,1.07-45.22-6-71-.2-3.82-1.49-30.36.61-47.34.34-2.75,11.65-6.56,23.63-10.59l1.33-.44c22-7.42,53.57-16.39,71.9-21.29a6.75,6.75,0,0,0,2.29-.25C112.64,112.43,114.08,111.09,113.78,110Z"/></svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

-31
View File
@@ -1,31 +0,0 @@
name: 'Close Pull Requests'
on:
pull_request_target:
types: opened
workflow_dispatch:
jobs:
close:
# Avoid forks to run this job
if: github.repository_owner == 'moodle'
name: Close Pull Requests
runs-on: ubuntu-latest
steps:
- uses: dessant/repo-lockdown@v4
with:
process-only: prs
close-pr: true
skip-closed-pr-comment: true
pr-comment: >
**Please, don't open pull requests via GitHub.**
This repository (moodle.git) at GitHub is just a mirror of the official Moodle repository.
For how to contribute patches for Moodle see
[CONTRIBUTING.md](https://github.com/moodle/moodle/blob/main/CONTRIBUTING.md).
Closing this pull request.
-118
View File
@@ -1,118 +0,0 @@
name: Run tests in a Composed Moodle Setup
on:
push:
branches-ignore:
- main
- MOODLE_[0-9]+_STABLE
tags-ignore:
- v[0-9]+.[0-9]+.[0-9]+*
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
php: 8.4
jobs:
PHPUnit:
runs-on: ${{ matrix.os }}
services:
exttests:
image: moodlehq/moodle-exttests
ports:
- 8080:80
redis:
image: redis
ports:
- 6379:6379
postgres:
image: ${{ matrix.db == 'pgsql' && 'postgres:16' || '' }}
env:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
include:
# MySQL builds always run with the lowest PHP supported version.
- os: ubuntu-24.04
php: 8.3
extensions:
db: mysqli
# PostgreSQL builds always run with the highest PHP supported version.
- os: ubuntu-24.04
php: 8.4
db: pgsql
steps:
- name: Run MySQL Server
if: ${{ matrix.db == 'mysqli' }}
run: |
docker run --rm \
-e MYSQL_DATABASE=test \
-e MYSQL_USER=test \
-e MYSQL_PASSWORD=test \
-e MYSQL_ROOT_PASSWORD=test \
-p 3306:3306 \
-d \
--tmpfs /var/lib/mysql:rw,noexec,nosuid,size=1024M \
mysql:8.4 \
--skip-log-bin \
--collation-server=utf8mb4_bin
- name: Configuring git vars
uses: rlespinasse/github-slug-action@v5
- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none
tools: composer
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v6
with:
path: 'moodle'
- name: 'Preparing the environment'
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
sudo locale-gen en_AU.UTF-8
- name: Create the new Composer Project
run: |
mkdir testsite
cp moodle/.github/workflows/composed/composer.json testsite/composer.json
cp moodle/.github/workflows/composed/config.php testsite/config.php
mkdir -p testsite/data/moodledata
mkdir -p testsite/data/phpunitdata
- name: Install the Moodle test site
working-directory: testsite
run: |
composer install --no-interaction
- name: Setting up PHPUnit
working-directory: testsite
env:
dbtype: ${{ matrix.db }}
run: |
php moodle/public/admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Running PHPUnit tests
working-directory: testsite
env:
dbtype: ${{ matrix.db }}
phpunit_options: ${{ secrets.phpunit_options }}
run: |
vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}
-25
View File
@@ -1,25 +0,0 @@
{
"type": "project",
"require": {
"moodle/composer-installer": "^1",
"moodle/moodle-composer-scaffold": "^1",
"moodle/moodle": "@dev",
"moodle/moodle-testing": "^1.0"
},
"repositories": [
{
"name": "moodleundertest",
"type": "path",
"url": "../moodle"
}
],
"config": {
"audit": {
"block-insecure": false
},
"allow-plugins": {
"moodle/composer-installer": true,
"moodle/moodle-composer-scaffold": true
}
}
}
-67
View File
@@ -1,67 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Template configuraton file for GitHub Actions CI/CD using Composer.
*
* @package core
* @copyright 2020 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// This cannot be used out from a GitHub Actions workflow, so just exit.
getenv('GITHUB_WORKFLOW') || die; // phpcs:ignore moodle.Files.MoodleInternal.MoodleInternalGlobalState
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('dbtype');
$CFG->dblibrary = 'native';
$CFG->dbhost = '127.0.0.1';
$CFG->dbname = 'test';
$CFG->dbuser = 'test';
$CFG->dbpass = 'test';
$CFG->prefix = 'm_';
$CFG->dboptions = ['dbcollation' => 'utf8mb4_bin'];
$host = 'localhost';
$CFG->wwwroot = "http://{$host}";
$CFG->dataroot = __DIR__ . '/data/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
// Debug options - possible to be controlled by flag in future.
$CFG->debug = (E_ALL); // DEBUG_DEVELOPER.
$CFG->debugdisplay = 1;
$CFG->debugstringids = 1; // Add strings=1 to url to get string ids.
$CFG->perfdebug = 15;
$CFG->debugpageinfo = 1;
$CFG->allowthemechangeonurl = 1;
$CFG->passwordpolicy = 0;
$CFG->cronclionly = 0;
$CFG->pathtophp = getenv('pathtophp');
$CFG->phpunit_dataroot = __DIR__ . '/data/phpunitdata';
$CFG->phpunit_prefix = 't_';
$CFG->routerconfigured = true;
define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://localhost:8080');
define('TEST_EXTERNAL_FILES_HTTPS_URL', 'http://localhost:8080');
define('TEST_SESSION_REDIS_HOST', 'localhost');
define('TEST_CACHESTORE_REDIS_TESTSERVERS', 'localhost');
-73
View File
@@ -1,73 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Template configuraton file for github actions CI/CD.
*
* @package core
* @copyright 2020 onwards Eloy Lafuente (stronk7) {@link https://stronk7.com}
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
// This cannot be used out from a github actions workflow, so just exit.
getenv('GITHUB_WORKFLOW') || die; // phpcs:ignore moodle.Files.MoodleInternal.MoodleInternalGlobalState
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = getenv('dbtype');
$CFG->dblibrary = 'native';
$CFG->dbhost = '127.0.0.1';
$CFG->dbname = 'test';
$CFG->dbuser = 'test';
$CFG->dbpass = 'test';
$CFG->prefix = 'm_';
$CFG->dboptions = ['dbcollation' => 'utf8mb4_bin'];
$host = 'localhost';
$CFG->wwwroot = "http://{$host}";
$CFG->dataroot = realpath(dirname(__DIR__)) . '/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
// Debug options - possible to be controlled by flag in future.
$CFG->debug = (E_ALL); // DEBUG_DEVELOPER.
$CFG->debugdisplay = 1;
$CFG->debugstringids = 1; // Add strings=1 to url to get string ids.
$CFG->perfdebug = 15;
$CFG->debugpageinfo = 1;
$CFG->allowthemechangeonurl = 1;
$CFG->passwordpolicy = 0;
$CFG->cronclionly = 0;
$CFG->pathtophp = getenv('pathtophp');
$CFG->phpunit_dataroot = realpath(dirname(__DIR__)) . '/phpunitdata';
$CFG->phpunit_prefix = 't_';
$CFG->routerconfigured = true;
define('TEST_EXTERNAL_FILES_HTTP_URL', 'http://localhost:8080');
define('TEST_EXTERNAL_FILES_HTTPS_URL', 'http://localhost:8080');
define('TEST_SESSION_REDIS_HOST', 'localhost');
define('TEST_CACHESTORE_REDIS_TESTSERVERS', 'localhost');
// TODO: add others (solr, mongodb, memcached, ldap...).
// Too much for now: define('PHPUNIT_LONGTEST', true); // Only leaves a few tests out and they are run later by CI.
require_once(__DIR__ . '/lib/setup.php');
-143
View File
@@ -1,143 +0,0 @@
name: One by One Testing
# Run all the individual unit tests one by one, with
# fully independent PHPUnit executions. Useful to
# detect issues with some tests that are using stuff
# that has been made available by others, but is not
# available when running individually.
#
# Note that we aren't using PHPUnit's own isolation
# here but completely separated runs, one for each
# test.
#
# The workflow will fail reporting all the tests
# that have failed (and will pass if no failure is
# detected, of course).
#
# It's only executed via workflow dispatch (automated
# or manual), not by push/tag. And acceptd configuration
# of phpunit, specially useful to run it with PHPUnit's
# own isolation or any other option.
on:
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
chunks: 7
jobs:
collect:
name: Collect individual unit tests
runs-on: ubuntu-latest
outputs:
matrix: ${{steps.individual-tests.outputs.matrix }}
steps:
- name: Checking out code
uses: actions/checkout@v4
- name: Looking for all individual tests
id: individual-tests
run: |
count=0 # Number of individual tests found.
while read -r testfile; do # For each test file.
while read -r testname; do # For each unit test in a file.
count=$((count + 1))
# Sent it to the correct chunk file.
chunk=$(((($count % $chunks)) + 1))
echo "$testname $testfile" >> ./chunk_$chunk.txt
done < <(grep "function test_" "${testfile}" | sed -r "s/^.*function (test_[a-zA-Z0-9_]+).*/\1/")
done < <(find . -name "*_test.php" -not -path "*/fixtures/*")
# Generate the matrix to run tests.
echo "matrix=$(ls -1 chunk_*.txt | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT
echo "$count individual tests collected in $chunks files"
- name: Upload individual tests files
uses: actions/upload-artifact@v4
with:
name: individual_tests
path: chunk_*.txt
retention-days: 1
test:
name: Run tests
needs: collect
runs-on: ubuntu-latest
services:
exttests:
image: moodlehq/moodle-exttests
ports:
- 8080:80
redis:
image: redis
ports:
- 6379:6379
strategy:
fail-fast: false
matrix:
file: ${{ fromJson(needs.collect.outputs.matrix) }}
steps:
- name: Setting up DB pgsql
uses: m4nu56/postgresql-action@v1
with:
postgresql version: 16
postgresql db: test
postgresql user: test
postgresql password: test
- name: Setting up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
ini-values: max_input_vars=5000
coverage: none
- name: Checking out code
uses: actions/checkout@v4
- name: Download individual test files
uses: actions/download-artifact@v4
with:
name: individual_tests # Make all the chunk files available for the next steps.
- name: Setting up PHPUnit
env:
dbtype: pgsql
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
sudo locale-gen en_AU.UTF-8
php public/admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Run PHPUnit test (one by one)
env:
dbtype: pgsql
run: |
status=0
count=0
while read -r line; do # For each line in the chunk file
count=$((count + 1))
filter="${line% *}"
file="${line#* }"
# Run the individual unit test and report problems if needed to.
if ! php vendor/bin/phpunit \
--fail-on-empty-test-suite \
--fail-on-warning \
--fail-on-risky \
--filter "$filter" ${{ inputs.phpunit_extra_options }} \
"$file" >/dev/null 2>&1; then
if [ $status -eq 0 ]; then
echo "Problems found, list of PHPUnit commands failing:"
fi
echo "vendor/bin/phpunit --filter '${filter}' ${{ inputs.phpunit_extra_options }} $file"
status=$((status + 1))
fi
done < ${{ matrix.file }}
echo "Finished: $count individual tests executed, $status tests failed"
exit $status
-128
View File
@@ -1,128 +0,0 @@
name: Core
on:
push:
branches-ignore:
- main
- MOODLE_[0-9]+_STABLE
tags-ignore:
- v[0-9]+.[0-9]+.[0-9]+*
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
php: 8.4
jobs:
Grunt:
runs-on: ubuntu-24.04
steps:
- name: Checking out code
uses: actions/checkout@v4
- name: Configuring node & npm
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Installing node stuff
run: npm install
- name: Running grunt
run: npx grunt
- name: Looking for uncommitted changes
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
# We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
run: |
git add .
git reset -- npm-shrinkwrap.json
git diff --cached --exit-code
PHPUnit:
runs-on: ${{ matrix.os }}
services:
exttests:
image: moodlehq/moodle-exttests
ports:
- 8080:80
redis:
image: redis
ports:
- 6379:6379
postgres:
image: ${{ matrix.db == 'pgsql' && 'postgres:16' || '' }}
env:
POSTGRES_DB: test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- 5432:5432
strategy:
fail-fast: false
matrix:
include:
# MySQL builds always run with the lowest PHP supported version.
- os: ubuntu-24.04
php: 8.3
extensions:
db: mysqli
# PostgreSQL builds always run with the highest PHP supported version.
- os: ubuntu-24.04
php: 8.4
db: pgsql
steps:
- name: Run MySQL Server
if: ${{ matrix.db == 'mysqli' }}
run: |
docker run --rm \
-e MYSQL_DATABASE=test \
-e MYSQL_USER=test \
-e MYSQL_PASSWORD=test \
-e MYSQL_ROOT_PASSWORD=test \
-p 3306:3306 \
-d \
--tmpfs /var/lib/mysql:rw,noexec,nosuid,size=1024M \
mysql:8.4 \
--skip-log-bin \
--collation-server=utf8mb4_bin
- name: Configuring git vars
uses: rlespinasse/github-slug-action@v4
- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v4
- name: Setting up PHPUnit
env:
dbtype: ${{ matrix.db }}
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
sudo locale-gen en_AU.UTF-8
php public/admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Running PHPUnit tests
env:
dbtype: ${{ matrix.db }}
phpunit_options: ${{ secrets.phpunit_options }}
run: vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}
- name: Git status
run: git status
-23
View File
@@ -1,23 +0,0 @@
name: Web Installer Testing
on:
workflow_dispatch:
jobs:
InstallationTest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.3, 8.4]
steps:
- name: Construct repository URL
run: echo "REPOSITORY_URL=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" >> $GITHUB_ENV
shell: bash
- uses: moodlehq/moodle-webinstaller-test@main
with:
repository: ${{ env.REPOSITORY_URL }}
branch: ${{ github.ref_name }}
php: ${{ matrix.php }}
-149
View File
@@ -1,149 +0,0 @@
name: Windows Testing
on:
workflow_dispatch:
inputs:
phpunit_extra_options:
description: Additional options to apply to PHPUnit
required: false
default: ''
env:
php: 8.4
jobs:
Grunt:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checking out code
uses: actions/checkout@v4
- name: Configuring node & npm
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Installing node stuff
run: npm ci
- name: Running grunt
run: npx grunt
- name: Looking for uncommitted changes
# Add all files to the git index and then run diff --cached to see all changes.
# This ensures that we get the status of all files, including new files.
# We ignore npm-shrinkwrap.json to make the tasks immune to npm changes.
run: |
git add .
git reset -- npm-shrinkwrap.json
git diff --cached --exit-code
PHPUnit:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
php: 8.4
# Ideally we should use mysql/mariadb, but they are 4x slower without tweaks and configuration
# so let's run only postgres (1.5h vs 6h) only, If some day we want to improve the mysql runs,
# this is the place to enable them.
# db: mysqli
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip
- os: windows-latest
php: 8.3
db: pgsql
extensions: exif, fileinfo, gd, intl, pgsql, mysql, redis, soap, sodium, zip
steps:
- name: Setting up DB mysql
if: ${{ matrix.db == 'mysqli' }}
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: 8.4
user: test
password: test
- name: Creating DB mysql
if: ${{ matrix.db == 'mysqli' }}
run: mysql --host 127.0.0.1 -utest -ptest -e 'CREATE DATABASE IF NOT EXISTS test COLLATE = utf8mb4_bin;';
- name: Setting up DB pgsql
if: ${{ matrix.db == 'pgsql' }}
run: |
# TODO: Remove these conf. modifications when php74 or php80 are lowest.
# Change to old md5 auth, because php73 does not support it.
# #password_encryption = scram-sha-256
(Get-Content "$env:PGDATA\postgresql.conf"). `
replace('#password_encryption = scram-sha-256', 'password_encryption = md5') | `
Set-Content "$env:PGDATA\postgresql.conf"
(Get-Content "$env:PGDATA\pg_hba.conf"). `
replace('scram-sha-256', 'md5') | `
Set-Content "$env:PGDATA\pg_hba.conf"
$pgService = Get-Service -Name postgresql*
Set-Service -InputObject $pgService -Status running -StartupType automatic
Start-Process -FilePath "$env:PGBIN\pg_isready" -Wait -PassThru
& $env:PGBIN\psql --command="CREATE USER test PASSWORD 'test'" --command="\du"
- name: Creating DB pgsql
if: ${{ matrix.db == 'pgsql' }}
run: |
& $env:PGBIN\createdb --owner=test test
$env:PGPASSWORD = 'test'
& $env:PGBIN\psql --username=test --host=localhost --list test
- name: Configuring git vars
uses: rlespinasse/github-slug-action@v4
- name: Setting up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: max_input_vars=5000
coverage: none
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checking out code from ${{ env.GITHUB_REF_SLUG }}
uses: actions/checkout@v4
# Needs to be done after php is available, git configured and Moodle checkout has happened.
- name: Setting up moodle-exttests service
run: |
git clone https://github.com/moodlehq/moodle-exttests.git
nssm install php-built-in C:\tools\php\php.exe -S localhost:8080 -t D:\a\moodle\moodle\moodle-exttests
nssm start php-built-in
- name: Setting up redis service
run: |
choco install redis --version 5.0.7 --no-progress
nssm install redis redis-server
nssm start redis
- name: Setting up PHPUnit
env:
dbtype: ${{ matrix.db }}
shell: bash
run: |
echo "pathtophp=$(which php)" >> $GITHUB_ENV # Inject installed pathtophp to env. The template config needs it.
cp .github/workflows/config-template.php config.php
mkdir ../moodledata
php public/admin/tool/phpunit/cli/init.php --no-composer-self-update
- name: Running PHPUnit tests
env:
dbtype: ${{ matrix.db }}
phpunit_options: ${{ secrets.phpunit_options }}
run: vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}
-63
View File
@@ -1,63 +0,0 @@
# This file specifies intentionally untracked files that all Moodle git
# repositories should ignore. It is recommended not to modify this file in your
# local clone. Instead, use .git/info/exclude and add new records there as
# needed.
#
# Example: if you deploy a contributed plugin mod/foobar into your site, put
# the following line into .git/info/exclude file in your Moodle clone:
# /mod/foobar/
#
# See gitignore(5) man page for more details
#
# Swap files (vim)
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
# Temporary files including undo
*~
#
/config.php
/tags
/TAGS
/cscope.*
/.patches/
/.idea/
.phpstorm.*
!/.phpstorm.meta.php/
/.phpstorm.meta.php/*
!/.phpstorm.meta.php/di.php
/nbproject/
CVS
.DS_Store
/.settings/
/.project
/.buildpath
/.cache
.phpunit.result.cache
phpunit.xml
# Composer support. Do not ignore composer.json, or composer.lock. These should be shipped by us.
composer.phar
/vendor/
/behat.yml
*/yui/build/*/*-coverage.js
/public/lib/yuilib/*/build/*/*-coverage.js
# lib/yuilib/version/module/module-coverage.js
/public/lib/yuilib/*/*/*-coverage.js
atlassian-ide-plugin.xml
/node_modules/
/.vscode/
moodle-plugin-ci.phar
.eslintignore
.stylelintignore
/jsdoc
/public/admin/tool/componentlibrary/docs
/public/admin/tool/componentlibrary/hugo/site/data/my-index.json
.hugo_build.lock
phpcs.xml
jsconfig.json
UPGRADING-CURRENT.md
.phpunit.cache
tsconfig.aliases.json
-169
View File
@@ -1,169 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This is a babel plugin to add the Moodle module names to the AMD modules
* as part of the transpiling process.
*
* In addition it will also add a return statement for the default export if the
* module is using default exports. This is a highly specific Moodle thing because
* we're transpiling to AMD and none of the existing Babel 7 plugins work correctly.
*
* This will fix the issue where an ES6 module using "export default Foo" will be
* transpiled into an AMD module that returns {default: Foo}; Instead it will now
* just simply return Foo.
*
* Note: This means all other named exports in that module are ignored and won't be
* exported.
*
* @copyright 2018 Ryan Wyllie <ryan@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
"use strict";
/* eslint-env node */
module.exports = ({template, types}) => {
const fs = require('fs');
const path = require('path');
const cwd = process.cwd();
const ComponentList = require(path.join(process.cwd(), '.grunt', 'components.js'));
/**
* Search the list of components that match the given file name
* and return the Moodle component for that file, if found.
*
* Throw an exception if no matching component is found.
*
* @throws {Error}
* @param {string} searchFileName The file name to look for.
* @return {string} Moodle component
*/
function getModuleNameFromFileName(searchFileName) {
searchFileName = fs.realpathSync(searchFileName);
const relativeFileName = searchFileName.replace(`${cwd}${path.sep}`, '').replace(/\\/g, '/');
const [componentPath, file] = relativeFileName.split('/amd/src/');
const fileName = file.replace('.js', '');
// Check subsystems first which require an exact match.
const componentName = ComponentList.getComponentFromPath(componentPath);
if (componentName) {
return `${componentName}/${fileName}`;
}
// This matches the previous PHP behaviour that would throw an exception
// if it couldn't parse an AMD file.
throw new Error(`Unable to find module name for ${searchFileName} (${componentPath}::${file}}`);
}
/**
* This is heavily inspired by the babel-plugin-add-module-exports plugin.
* See: https://github.com/59naga/babel-plugin-add-module-exports
*
* This is used when we detect a module using "export default Foo;" to make
* sure the transpiled code just returns Foo directly rather than an object
* with the default property (i.e. {default: Foo}).
*
* Note: This means that we can't support modules that combine named exports
* with a default export.
*
* @param {String} path
* @param {String} exportObjectName
*/
function addModuleExportsDefaults(path, exportObjectName) {
const rootPath = path.findParent(path => {
return path.key === 'body' || !path.parentPath;
});
// HACK: `path.node.body.push` instead of path.pushContainer(due doesn't work in Plugin.post).
// This is hardcoded to work specifically with AMD.
rootPath.node.body.push(template(`return ${exportObjectName}.default`)());
}
return {
pre() {
this.seenDefine = false;
this.addedReturnForDefaultExport = false;
},
visitor: {
// Plugin ordering is only respected if we visit the "Program" node.
// See: https://babeljs.io/docs/en/plugins.html#plugin-preset-ordering
//
// We require this to run after the other AMD module transformation so
// let's visit the "Program" node.
Program: {
exit(path) {
path.traverse({
CallExpression(path) {
// If we find a "define" function call.
if (!this.seenDefine && path.get('callee').isIdentifier({name: 'define'})) {
// We only want to modify the first instance of define that we find.
this.seenDefine = true;
// Get the Moodle component for the file being processed.
var moduleName = getModuleNameFromFileName(this.file.opts.filename);
// The function signature of `define()` is:
// define = function (name, deps, callback) {...}
// Ensure that if the moduel supplied its own name that it is replaced.
if (path.node.arguments.length > 0) {
// Ensure that there is only one name.
if (path.node.arguments[0].type === 'StringLiteral') {
// eslint-disable-next-line
console.log(`Replacing module name '${path.node.arguments[0].extra.rawValue}' with ${moduleName}`);
path.node.arguments.shift();
}
}
// Add the module name as the first argument to the define function.
path.node.arguments.unshift(types.stringLiteral(moduleName));
// Add a space after the define function in the built file so that previous versions
// of Moodle will not try to add the module name to the file when it's being served
// by PHP. This forces the regex in PHP to not match for this file.
path.node.callee.name = 'define ';
}
// Check for any Object.defineProperty('exports', 'default') calls.
if (!this.addedReturnForDefaultExport && path.get('callee').matchesPattern('Object.defineProperty')) {
const [identifier, prop] = path.get('arguments');
const objectName = identifier.get('name').node;
const propertyName = prop.get('value').node;
if ((objectName === 'exports' || objectName === '_exports') && propertyName === 'default') {
addModuleExportsDefaults(path, objectName);
this.addedReturnForDefaultExport = true;
}
}
},
AssignmentExpression(path) {
// Check for an exports.default assignments.
if (
!this.addedReturnForDefaultExport &&
(
path.get('left').matchesPattern('exports.default') ||
path.get('left').matchesPattern('_exports.default')
)
) {
const objectName = path.get('left.object.name').node;
addModuleExportsDefaults(path, objectName);
this.addedReturnForDefaultExport = true;
}
}
}, this);
}
}
}
};
};
-455
View File
@@ -1,455 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Helper functions for working with Moodle component names, directories, and sources.
*
* @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
"use strict";
/* eslint-env node */
/** @var {Object} A list of subsystems in Moodle */
const componentData = {};
/**
* Load details of all moodle modules.
*
* @returns {object}
*/
const fetchComponentData = () => {
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const gruntFilePath = process.cwd();
if (!Object.entries(componentData).length) {
componentData.subsystems = {};
componentData.pathList = [];
componentData.components = {};
componentData.standardComponents = {};
// Fetch the component definiitions from the distributed JSON file.
const components = JSON.parse(fs.readFileSync(`${gruntFilePath}/lib/components.json`));
const pluginData = JSON.parse(fs.readFileSync(`${gruntFilePath}/lib/plugins.json`));
componentData.pluginTypes = components.plugintypes
const standardPlugins = Object.entries(pluginData.standard).map(
([pluginType, pluginNames]) => {
return pluginNames.map(pluginName => `${pluginType}_${pluginName}`);
}
).reduce((acc, val) => acc.concat(val), []);
// Build the list of moodle subsystems.
componentData.subsystems['public/lib'] = 'core';
componentData.pathList.push(`${process.cwd()}/public/lib`);
for (const [component, thisPath] of Object.entries(components.subsystems)) {
if (thisPath) {
// Prefix "core_" to the front of the subsystems.
componentData.subsystems[thisPath] = `core_${component}`;
componentData.pathList.push(`${process.cwd()}/${thisPath}`);
}
}
// The list of components includes the list of subsystems.
componentData.components = Object.fromEntries(
Object.entries(componentData.subsystems)
.map(([path, name]) => ([path, name]))
);
const subpluginAdder = (subpluginType, subpluginTypePath) => {
glob.sync(`${subpluginTypePath}/*/version.php`).forEach(versionPath => {
const componentPath = fs.realpathSync(path.dirname(versionPath));
const componentName = path.basename(componentPath);
const frankenstyleName = `${subpluginType}_${componentName}`;
componentData.components[`${subpluginTypePath}/${componentName}`] = frankenstyleName;
componentData.pathList.push(componentPath);
});
};
// Go through each of the plugintypes.
Object.entries(components.plugintypes).forEach(([pluginType, pluginTypePath]) => {
// We don't allow any code in this place..?
glob.sync(`${pluginTypePath}/*/version.php`).forEach(versionPath => {
const componentPath = fs.realpathSync(path.dirname(versionPath));
const componentName = path.basename(componentPath);
const frankenstyleName = `${pluginType}_${componentName}`;
componentData.components[`${pluginTypePath}/${componentName}`] = frankenstyleName;
componentData.pathList.push(componentPath);
// Look for any subplugins.
const subPluginConfigurationFile = `${componentPath}/db/subplugins.json`;
if (fs.existsSync(subPluginConfigurationFile)) {
const subpluginList = JSON.parse(fs.readFileSync(fs.realpathSync(subPluginConfigurationFile)));
if (subpluginList.subplugintypes) {
Object.entries(subpluginList.subplugintypes).forEach(([subpluginType, subpluginTypePath]) => {
subpluginAdder(
subpluginType,
`${pluginTypePath}/${componentName}/${subpluginTypePath}`
);
});
} else if (subpluginList.plugintypes) {
Object.entries(subpluginList.plugintypes).forEach(([subpluginType, subpluginTypePath]) => {
subpluginAdder(subpluginType, `public/${subpluginTypePath}`);
});
}
}
});
});
// Create a list of the standard subsystem and plugins.
componentData.standardComponents = Object.fromEntries(
Object.entries(componentData.components).filter(([, name]) => {
if (name === 'core' || name.startsWith('core_')) {
return true;
}
return standardPlugins.indexOf(name) !== -1;
})
);
componentData.componentMapping = Object.fromEntries(
Object.entries(componentData.components).map(([path, name]) => [name, path])
);
}
return componentData;
};
/**
* Get the list of component paths.
*
* @param {string} relativeTo
* @returns {array}
*/
const getComponentPaths = (relativeTo = '') => fetchComponentData().pathList.map(componentPath => {
return componentPath.replace(relativeTo, '');
});
/**
* Get the list of paths to build AMD sources.
*
* @returns {Array}
*/
const getAmdSrcGlobList = () => {
const globList = [];
fetchComponentData().pathList.forEach(componentPath => {
globList.push(`${componentPath}/amd/src/*.js`);
globList.push(`${componentPath}/amd/src/**/*.js`);
});
return globList;
};
/**
* Get the list of paths to build YUI sources.
*
* @param {String} relativeTo
* @returns {Array}
*/
const getYuiSrcGlobList = relativeTo => {
const globList = [];
fetchComponentData().pathList.forEach(componentPath => {
const relativeComponentPath = componentPath.replace(relativeTo, '');
globList.push(`${relativeComponentPath}/yui/src/**/*.js`);
});
return globList;
};
/**
* Get the list of paths to thirdpartylibs.xml.
*
* @param {String} relativeTo
* @returns {Array}
*/
const getThirdPartyLibsList = relativeTo => {
const fs = require('fs');
const path = require('path');
const pathList = fetchComponentData().pathList
.map(componentPath => path.relative(relativeTo, componentPath) + '/thirdpartylibs.xml')
.map(componentPath => componentPath.replace(/\\/g, '/'))
.filter(path => fs.existsSync(path));
pathList.push('lib/thirdpartylibs.xml');
return pathList.sort();
};
/**
* Get the list of thirdparty library paths.
*
* @returns {array}
*/
const getThirdPartyPaths = () => {
const DOMParser = require('@xmldom/xmldom').DOMParser;
const fs = require('fs');
const path = require('path');
const xpath = require('xpath');
const thirdpartyfiles = getThirdPartyLibsList(fs.realpathSync('./'));
const libs = ['node_modules/', 'vendor/'];
const addLibToList = lib => {
if (!lib.match('\\*') && fs.statSync(lib).isDirectory()) {
// Ensure trailing slash on dirs.
lib = lib.replace(/\/?$/, '/');
}
// Look for duplicate paths before adding to array.
if (libs.indexOf(lib) === -1) {
libs.push(lib);
}
};
thirdpartyfiles.forEach(function(file) {
const dirname = path.dirname(file);
const xmlContent = fs.readFileSync(file, 'utf8');
const doc = new DOMParser().parseFromString(xmlContent);
const nodes = xpath.select("/libraries/library/location/text()", doc);
nodes.forEach(function(node) {
let lib = path.posix.join(dirname, node.toString());
addLibToList(lib);
});
});
return libs;
};
/**
* Find the name of the component matching the specified path.
*
* @param {String} path
* @returns {String|null} Name of matching component.
*/
const getComponentFromPath = path => {
const componentList = fetchComponentData().components;
if (componentList.hasOwnProperty(path)) {
return componentList[path];
}
return null;
};
/**
* Check whether the supplied path, relative to the Gruntfile.js, is in a known component.
*
* @param {String} checkPath The path to check. This can be with either Windows, or Linux directory separators.
* @returns {String|null}
*/
const getOwningComponentDirectory = checkPath => {
const path = require('path');
// Fetch all components into a reverse sorted array.
// This ensures that components which are within the directory of another component match first.
const pathList = Object.keys(fetchComponentData().components).sort().reverse();
for (const componentPath of pathList) {
// If the componentPath is the directory being checked, it will be empty.
// If the componentPath is a parent of the directory being checked, the relative directory will not start with ..
if (!path.relative(componentPath, checkPath).startsWith('..')) {
return componentPath;
}
}
return null;
};
/**
* Get the latest tag in a remote GitHub repository.
*
* @param {string} url The remote repository.
* @returns {Array}
*/
const getRepositoryTags = async(url) => {
const gtr = require('git-tags-remote');
try {
const tags = await gtr.get(url);
if (tags !== undefined) {
return tags;
}
} catch (error) {
return [];
}
return [];
};
/**
* Get the list of thirdparty libraries that could be upgraded.
*
* @returns {Array}
*/
const getThirdPartyLibsUpgradable = async() => {
const libraries = getThirdPartyLibsData().filter((library) => !!library.repository);
const upgradableLibraries = [];
const versionCompare = (a, b) => {
if (a === b) {
return 0;
}
const aParts = a.split('.');
const bParts = b.split('.');
for (let i = 0; i < Math.min(aParts.length, bParts.length); i++) {
const aPart = parseInt(aParts[i], 10);
const bPart = parseInt(bParts[i], 10);
if (aPart > bPart) {
// 1.1.0 > 1.0.9
return 1;
} else if (aPart < bPart) {
// 1.0.9 < 1.1.0
return -1;
} else {
// Same version.
continue;
}
}
if (aParts.length > bParts.length) {
// 1.0.1 > 1.0
return 1;
}
// 1.0 < 1.0.1
return -1;
};
for (let library of libraries) {
upgradableLibraries.push(
getRepositoryTags(library.repository).then((tagMap) => {
library.version = library.version.replace(/^v/, '');
const currentVersion = library.version.replace(/moodle-/, '');
const currentMajorVersion = library.version.split('.')[0];
const tags = [...tagMap]
.map((tagData) => tagData[0])
.filter((tag) => !tag.match(/(alpha|beta|rc)/))
.map((tag) => tag.replace(/^v/, ''))
.sort((a, b) => versionCompare(b, a));
if (!tags.length) {
library.warning = "Unable to find any comparable tags.";
return library;
}
library.latestVersion = tags[0];
tags.some((tag) => {
if (!tag) {
return false;
}
// See if the version part matches.
const majorVersion = tag.split('.')[0];
if (majorVersion === currentMajorVersion) {
library.latestSameMajorVersion = tag;
return true;
}
return false;
});
if (versionCompare(currentVersion, library.latestVersion) > 0) {
// Moodle somehow has a newer version than the latest version.
library.warning = `Newer version found: ${currentVersion} > ${library.latestVersion} for ${library.name}`;
return library;
}
if (library.version !== library.latestVersion) {
// Delete version and add it again at the end of the array. That way, current and new will stay closer.
delete library.version;
library.version = currentVersion;
return library;
}
return null;
})
);
}
return (await Promise.all(upgradableLibraries)).filter((library) => !!library);
};
/**
* Get the list of paths to build react sources.
*
* @param {string} relativeTo
* @returns {string[]}
*/
const getReactTsSrcGlobList = (relativeTo = '') => {
const globList = [];
fetchComponentData().pathList.forEach(componentPath => {
const relativeComponentPath = componentPath.replace(relativeTo, '');
globList.push(`${relativeComponentPath}/js/esm/src/**/*.ts`);
globList.push(`${relativeComponentPath}/js/esm/src/**/*.tsx`);
});
return globList.map(componentPath => componentPath.replace(/\\/g, '/'));
};
/**
* Get the list of thirdparty libraries.
*
* @returns {Array}
*/
const getThirdPartyLibsData = () => {
const DOMParser = require('@xmldom/xmldom').DOMParser;
const fs = require('fs');
const xpath = require('xpath');
const path = require('path');
const libraryList = [];
const libraryFields = [
'location',
'name',
'version',
'repository',
];
const thirdpartyfiles = getThirdPartyLibsList(fs.realpathSync('./'));
thirdpartyfiles.forEach(function(libraryPath) {
const xmlContent = fs.readFileSync(libraryPath, 'utf8');
const doc = new DOMParser().parseFromString(xmlContent);
const libraries = xpath.select("/libraries/library", doc);
for (const library of libraries) {
const libraryData = [];
for (const field of libraryFields) {
libraryData[field] = xpath.select(`${field}/text()`, library)?.toString();
}
libraryData.location = path.join(path.dirname(libraryPath), libraryData.location);
libraryList.push(libraryData);
}
});
return libraryList.sort((a, b) => a.location.localeCompare(b.location));
};
module.exports = {
fetchComponentData,
getAmdSrcGlobList,
getComponentFromPath,
getComponentPaths,
getOwningComponentDirectory,
getYuiSrcGlobList,
getThirdPartyLibsList,
getThirdPartyPaths,
getThirdPartyLibsUpgradable,
getReactTsSrcGlobList,
};
-19
View File
@@ -1,19 +0,0 @@
# Moodle JavaScript Documentation
```
.-..-.
_____ | || |
/____/-.---_ .---. .---. .-.| || | .---.
| | _ _ |/ _ \/ _ \/ _ || |/ __ \
* | | | | | || |_| || |_| || |_| || || |___/
|_| |_| |_|\_____/\_____/\_____||_|\_____)
Moodle - the world's open source learning platform
```
## About
This generated documentation includes API documentation for JavaScript written in the AMD and ES2015 module formats within Moodle.
## Related information
See [https://moodledev.io](https://moodledev.io) for other related Developer Documentation.
-131
View File
@@ -1,131 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Helper functions for working with Moodle component names, directories, and sources.
*
* @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
"use strict";
/* eslint-env node */
// Do not include any plugins as stanard.
const plugins = [];
plugins.push('plugins/markdown');
/**
* Get the source configuration.
*
* @return {Object}
*/
const getSource = () => {
const glob = require('glob');
const path = require('path');
const ComponentList = require(path.resolve('.grunt/components.js'));
const thirdPartyPaths = ComponentList.getThirdPartyPaths();
const source = {
include: [],
includePattern: ".+\\.js$",
};
let includeList = [];
ComponentList.getAmdSrcGlobList().forEach(async pattern => {
includeList.push(...glob.sync(pattern));
});
const cwdLength = process.cwd().length + 1;
includeList.forEach(path => {
if (source.include.indexOf(path) !== -1) {
// Ensure no duplicates.
return;
}
const relPath = path.substring(cwdLength);
if (thirdPartyPaths.indexOf(relPath) !== -1) {
return;
}
source.include.push(path);
});
source.include.push('.grunt/jsdoc/README.md');
return source;
};
const tags = {
// Allow the use of unknown tags.
// We have a lot of legacy uses of these.
allowUnknownTags: true,
// We make use of jsdoc and closure dictionaries as standard.
dictionaries: [
'jsdoc',
'closure',
],
};
// Template configuraiton.
const templates = {
cleverLinks: false,
monospaceLinks: false,
};
module.exports = {
opts: {
destination: "./public/jsdoc/",
template: "node_modules/docdash",
},
plugins,
recurseDepth: 10,
source: getSource(),
sourceType: 'module',
tags,
templates,
docdash: {
collapse: true,
search: true,
sort: true,
sectionOrder: [
"Namespaces",
"Modules",
"Events",
"Classes",
"Externals",
"Mixins",
"Tutorials",
"Interfaces"
],
"menu": {
"Developer Docs": {
href: "https://moodledev.io",
target: "_blank",
"class": "menu-item",
id: "devdocs"
},
"MDN Docs": {
href: "https://developer.mozilla.org/en-US/docs/Web/JavaScript",
target: "_blank",
"class": "menu-item",
id: "mdndocs",
},
},
typedefs: true,
},
};
-138
View File
@@ -1,138 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import * as Components from '../../components.js';
const componentData = Components.fetchComponentData();
/**
* The standard components shipped with core Moodle.
*
* @type {Object}
*/
export const standardComponents = componentData.standardComponents;
/**
* All components of the current Moodle instance.
*
* @type {Object}
*/
export const allComponents = componentData.components;
/**
* Get all components of the current Moodle instance.
*
* @returns {Array}
*/
export const getAllComponents = () => {
let components = new Map(Object.entries(componentData.pluginTypes).map(([value, path]) => ([path,{
path,
value,
name: `${value} (plugin type)`,
}])));
Object
.entries(componentData.components)
.filter(([path, value]) => Object.values(componentData.standardComponents).includes(value))
.forEach(([path, value]) => {
const entry = {
path,
value,
name: value,
};
if (Object.values(componentData.subsystems).includes(value)) {
if (components.has(path)) {
entry.name = `${value} (subsystem / plugintype)`;
} else {
entry.name = `${value} (subsystem)`;
}
}
components.set(path, entry);
});
return Array.from(components.values());
};
/**
* Whether the specified component is a standard component shipped with core Moodle.
*
* @param {string} componentName
* @returns {boolean}
*/
export const isStandardComponent = (componentName) => {
if (Object.values(componentData.standardComponents).includes(componentName)) {
return true;
}
if (Object.keys(componentData.pluginTypes).includes(componentName)) {
return true;
}
return false;
};
export const rewritePlugintypeAsSubsystem = (componentName) => {
if (Object.keys(componentData.pluginTypes).includes(componentName)) {
const pluginTypePath = componentData.pluginTypes[componentName];
if (Object.keys(componentData.subsystems).includes(pluginTypePath)) {
return true;
}
}
return false;
};
/**
* Whether the specified component is a community component.
*
* @param {string} componentName
* @returns {boolean}
*/
export const isCommunityComponent = (componentName) => {
if (isStandardComponent(componentName)) {
return false;
}
return Object.values(componentData.components).indexOf(componentName) !== -1;
};
/**
* Sort method for components.
*
* This method sorts components putting `core` first, followed by core subsystems, then everything else.
*
* @param {String} a
* @param {String} b
* @returns {Number}
*/
export const sortComponents = (a, b) => {
// Always put 'core' first.
if (a === 'core') {
return -1;
} else if (b === 'core') {
return 1;
}
// Put core subsystems next.
if (a.startsWith('core_') && !b.startsWith('core_')) {
return -1;
} else if (b.startsWith('core_') && !a.startsWith('core_')) {
return 1;
}
// Sort alphabetically for everything else.
return a.localeCompare(b);
};
-85
View File
@@ -1,85 +0,0 @@
#!/usr/bin/env node
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import inquirer from 'inquirer';
import chalk from 'chalk';
import { createNote } from './note.mjs';
import { getInitialValues, getIssueNumberFromBranchName } from './helpers.mjs';
import * as Prompts from './prompts.mjs';
import logger from './logger.mjs';
export default async (options) => {
// Processs the initial values.
const initialValues = getInitialValues(options);
// Fetch information.
const messages = [];
const { issueNumber } = await inquirer.prompt([
Prompts.getIssuePrompt(getIssueNumberFromBranchName()),
], initialValues);
let selection = {};
let notePath;
do {
selection = {};
selection = await inquirer.prompt([
Prompts.getComponentsPrompt(),
Prompts.getTypePrompt(),
Prompts.getMessagePromptInput(),
], initialValues);
if (selection.message === '') {
selection = Object.assign(
selection,
await inquirer.prompt([
Prompts.getMessagePromptEditor(),
]),
);
}
logger.info(`
Creating upgrade note with the following options:
- Issue: ${chalk.bold(issueNumber)}
- Component: ${chalk.bold(selection.components)}
- Type: ${chalk.bold(selection.type)}
- Message:
${chalk.bold(selection.message)}
`);
messages.push({
components: [selection.components],
type: selection.type,
message: selection.message,
});
// Save the note so far.
if (notePath) {
await createNote(issueNumber, messages, notePath);
logger.info(`Updated note at: ${chalk.underline(chalk.bold(notePath))}`);
} else {
notePath = await createNote(issueNumber, messages);
logger.info(`Note created at: ${chalk.underline(chalk.bold(notePath))}`);
}
selection = Object.assign(
selection,
await inquirer.prompt([
Prompts.getAddAnotherPrompt(),
], initialValues),
);
} while (selection.addAnother);
};
-357
View File
@@ -1,357 +0,0 @@
#!/usr/bin/env node
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import chalk from 'chalk';
import { getAllComponents } from './components.mjs';
import { getCombinedNotesByComponent, deleteAllNotes } from './note.mjs';
import { getNoteName } from './noteTypes.mjs';
import { writeFile, readFile, unlink } from 'fs/promises';
import { join as joinPath } from 'path';
import logger from './logger.mjs';
import { getCurrentVersion } from './helpers.mjs';
/**
* Helper to fetch the current notes from a file.
*
* @param {string} file
* @returns {Promise<string>}
*/
const getCurrentNotes = async (file) => {
try {
return await readFile(file, 'utf8');
} catch (error) {
return null;
}
}
/**
* Update the UPGRADING.md file.
*
* @param {string} upgradeNotes
* @param {Object} options
* @param {boolean} options.deleteNotes
* @returns {Promise<void>}
*/
const updateUpgradeNotes = async (upgradeNotes, options) => {
const fileName = 'UPGRADING.md';
// Write the notes to a file.
logger.info(`Writing notes to ${chalk.underline(chalk.bold(fileName))}`);
// Prepend to the existing file.
const existingContent = await getCurrentNotes(fileName);
if (existingContent) {
await writeFile(fileName, getUpdatedNotes(existingContent, upgradeNotes));
} else {
// This should not normally happen.
await writeFile(fileName, upgradeNotes);
}
if (options.deleteNotes) {
logger.warn(`>>> Deleting all notes <<<`)
// Delete the notes.
deleteAllNotes();
}
};
/**
* Create the current summary notes.
*
* @param {string} upgradeNotes
* @returns {Promise<void>}
*/
const createCurrentSummary = async (upgradeNotes) => {
const fileName = 'UPGRADING-CURRENT.md';
const notes = `# Moodle upgrade notes\n\n${upgradeNotes}`;
await writeFile(fileName, notes);
logger.info(`Running upgrade notes written to ${chalk.underline(chalk.bold(fileName))}`);
};
/**
* Get the indexes of the lines that contain the version headings.
*
* @param {array<string>} lines
* @returns {array<object>}
*/
const getVersionLineIndexes = (lines) => {
const h2Indexes = [];
lines.forEach((line, index) => {
const matches = line.match(/^##\s(?<version>.*)$/);
if (matches) {
h2Indexes.push({
index,
line,
version: matches.groups.version,
});
}
});
return h2Indexes;
};
/**
* Find the index of the Unreleased heading.
*
* @param {array<object>} versionHeadings
* @returns {number}
*/
const findUnreleasedHeadingIndex = (versionHeadings) => versionHeadings.findIndex((heading) => {
if (heading.version === 'Unreleased') {
// Used if version cannot be guessed.
return true;
}
if (heading.version.endsWith('+')) {
// Weekly release for a stable branch.
return true;
}
if (heading.version.match(/beta|rc\d/)) {
// Beta and RC rolls are treated as weeklies.
return true;
}
if (heading.version.endsWith('dev')) {
// Development version.
return true;
}
return false;
});
/**
* Get the before and after content, to facilitate replacing any existing Unreleased notes.
*
* @param {array<string>} lines
* @returns {Object} {beforeContent: string, afterContent: string}
*/
const getBeforeAndAfterContent = (lines) => {
const existingLines = lines.split('\n');
const versionHeadings = getVersionLineIndexes(existingLines);
if (versionHeadings.length > 0) {
const unreleasedHeadingIndex = findUnreleasedHeadingIndex(versionHeadings);
if (unreleasedHeadingIndex !== -1) {
const beforeContent = existingLines.slice(0, versionHeadings[unreleasedHeadingIndex].index).join('\n');
if (versionHeadings.length > unreleasedHeadingIndex + 1) {
const afterContent = existingLines.slice(versionHeadings[unreleasedHeadingIndex + 1].index).join('\n');
return {
beforeContent,
afterContent,
};
}
return {
beforeContent,
afterContent: '',
};
}
return {
beforeContent: existingLines.slice(0, versionHeadings[0].index).join('\n'),
afterContent: existingLines.slice(versionHeadings[0].index).join('\n'),
};
}
return {
beforeContent: existingLines.join('\n'),
afterContent: '',
}
};
/**
* Get the notes for the component.
*
* @param {string} types
* @param {Number} headingLevel
* @returns {string}
*/
const getNotesForComponent = (types, headingLevel) => {
let upgradeNotes = '';
Object.entries(types).forEach(([type, notes]) => {
upgradeNotes += '#'.repeat(headingLevel);
upgradeNotes += ` ${getNoteName(type)}\n\n`;
notes.forEach(({ message, issueNumber }) => {
// Split the message into lines, removing empty lines.
const messageLines = message
.split('\n')
// Remove empty lines between tables, and list entries, but not after lists.
.filter((line, index, lines) => {
if (line.trim().length === 0) {
// This line is empty.
// If it's the first line in the file, remove it.
if (index === 0) {
return false;
}
// This is the last line in the file, remove it.
if (index === lines.length - 1) {
return false;
}
// If the previous line relates to a table, remove this line.
if (lines[index - 1].match(/^\s*\|/)) {
return false;
}
// If the next line is also empty, do not remove this line.
if (lines[index + 1].trim().length === 0) {
return true;
}
// Do not remove the line if the previous line was a list item.
if (lines[index - 1].match(/^\s*[-*]\s/)) {
return true;
}
if (lines[index - 1].match(/^\s*\d+\.\s/)) {
return true;
}
// Preserve all other empty lines by default.
return true;
}
// Keep any line which has content.
return true;
});
const firstLine = messageLines.shift().trim();
upgradeNotes += `- ${firstLine}\n`;
messageLines
.forEach((line) => {
upgradeNotes += ` ${line}`.trimEnd() + `\n`;
});
upgradeNotes += `\n For more information see [${issueNumber}](https://tracker.moodle.org/browse/${issueNumber})\n`;
});
upgradeNotes += '\n';
});
return upgradeNotes;
};
/**
* Get the updated notes mixed with existing content.
*
* @param {string} existingContent
* @param {string} upgradeNotes
*/
const getUpdatedNotes = (existingContent, upgradeNotes) => {
const { beforeContent, afterContent } = getBeforeAndAfterContent(existingContent);
const newContent = `${beforeContent}\n${upgradeNotes}\n${afterContent}`
.split('\n')
.filter((line, index, lines) => {
if (line === '' && lines[index - 1] === '') {
// Remove multiple consecutive empty lines.
return false;
}
return true;
})
.join('\n');
return newContent;
};
/**
* Update the notes for each component.
*/
const updateComponentNotes = (
notes,
version,
notesFileName = 'UPGRADING.md',
removeEmpty = false,
) => {
return getAllComponents().map(async (component) => {
logger.verbose(`Updating notes for ${component.name} into ${component.path}`);
const fileName = joinPath(component.path, notesFileName);
const existingContent = await getCurrentNotes(fileName);
if (!existingContent) {
if (!notes[component.value]) {
// No existing notes, and no new notes to add.
return;
}
} else {
if (!notes[component.value]) {
// There is existing content, but nothing to add.
if (removeEmpty) {
logger.verbose(`Removing empty notes file ${fileName}`);
await unlink(fileName);
}
return;
}
}
const componentNotes = notes[component.value];
let upgradeNotes = `## ${version}\n\n`;
upgradeNotes += getNotesForComponent(componentNotes, 3);
if (existingContent) {
await writeFile(fileName, getUpdatedNotes(existingContent, upgradeNotes));
} else {
await writeFile(
fileName,
`# ${component.name} Upgrade notes\n\n${upgradeNotes}`,
);
}
});
}
/**
* Generate the upgrade notes for a new release.
*
* @param {string|undefined} version
* @param {Object} options
* @param {boolean} options.generateUpgradeNotes
* @param {boolean} options.deleteNotes
* @returns {Promise<void>}
*/
export default async (version, options = {}) => {
const notes = await getCombinedNotesByComponent();
if (Object.keys(notes).length === 0) {
logger.warn('No notes to generate');
return;
}
if (!version) {
version = await getCurrentVersion();
}
// Generate the upgrade notes for this release.
// We have
// - a title with the release name
// - the change types
// - which contain the components
// - which document each change
let upgradeNotes = `## ${version}\n\n`;
Object.entries(notes).forEach(([component, types]) => {
upgradeNotes += `### ${component}\n\n`;
upgradeNotes += getNotesForComponent(types, 4);
});
await Promise.all([
createCurrentSummary(upgradeNotes),
...updateComponentNotes(notes, version, 'UPGRADING-CURRENT.md', true),
]);
if (options.generateUpgradeNotes) {
await Promise.all(updateComponentNotes(notes, version));
await updateUpgradeNotes(upgradeNotes, options);
}
};
-244
View File
@@ -1,244 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import chalk from 'chalk';
import branchName from 'current-git-branch';
import { isStandardComponent, isCommunityComponent, rewritePlugintypeAsSubsystem } from './components.mjs';
import { isValidNoteName } from './noteTypes.mjs';
import logger from './logger.mjs';
import { readFile } from 'fs/promises';
/**
* Validate an issue number input
*
* @param {string} input
* @returns {string|boolean}
*/
export const validateIssueNumber = (input) => {
if (!input) {
return 'You must provide a tracker issue number';
}
if (input.match(/^[a-zA-Z]*-\d+$/)) {
return true;
}
if (input.match(/^\d+$/)) {
return true;
}
return 'The issue number was not recognised as a valid issue number';
};
/**
* Format an issue number input.
*
* @param {string} input
* @returns {string}
*/
export const formatIssueNumber = (input) => {
if (input.match(/^[a-zA-Z]*-\d+$/)) {
return input;
}
if (input.match(/^\d+$/)) {
return `MDL-${input}`;
}
return input;
};
/**
* Get the issue number, based off current git branch name
*
* @returns {string|null}
*/
export const getIssueNumberFromBranchName = () => {
const issueNumber = String(branchName()).match(/^[a-zA-Z]*-\d+/);
if (issueNumber) {
return formatIssueNumber(issueNumber[0]);
}
return null;
};
/**
* Validate a component.
*
* @param {string} input
* @returns {string|boolean}
*/
export const validateComponent = (input) => {
if (isStandardComponent(input)) {
return true;
}
if (isCommunityComponent(input)) {
return 'Currently only core plugins are supported.';
}
return 'The component was not recognised as a standard component';
};
export const formatComponent = (input) => {
if (rewritePlugintypeAsSubsystem(input)) {
return `core_${input}`;
}
return input;
}
/**
* Get the initial values from the options.
*
* @param {object} options
* @returns {object}
*/
export const getInitialValues = (options) => {
const initialValues = {};
const type = getInitialTypeValue(options);
if (type) {
initialValues.type = type;
}
const issueNumber = getInitialIssueValue(options);
if (issueNumber) {
initialValues.issueNumber = issueNumber;
}
const component = getInitialComponentValue(options);
if (component) {
initialValues.components = component;
}
const message = getInitialMessageValue(options);
if (message) {
initialValues.message = message
initialValues.addAnother = false;
}
return initialValues;
};
/**
* Get the initial type value.
*
* @param {Object} options
* @returns {string|undefined}
*/
const getInitialTypeValue = (options) => {
if (!options.type) {
return;
}
options.type = options.type.trim().toLowerCase();
if (isValidNoteName(options.type)) {
return options.type;
}
logger.warn(`Note type "${chalk.underline(chalk.red(options.type))}" is not valid.`);
};
/**
* Get the initial issue number value.
*
* @param {Object} options
* @returns {string|undefined}
*/
const getInitialIssueValue = (options) => {
if (!options.issue) {
return;
}
options.issue = options.issue.trim().toUpperCase();
const issueNumberValidated = validateIssueNumber(options.issue);
if (issueNumberValidated === true) {
const issueNumber = formatIssueNumber(options.issue);
if (issueNumber !== options.issue) {
logger.warn(
`Issue number "${chalk.underline(chalk.red(options.issue))}" was updated to ` +
`"${chalk.underline(chalk.green(issueNumber))}"`
);
}
return issueNumber;
} else {
logger.warn(`Issue number "${chalk.underline(chalk.red(options.issue))}" is not valid: ${issueNumberValidated}`);
}
};
/**
* Get the initial component value.
*
* @param {Object} options
* @returns {string|undefined}
*/
const getInitialComponentValue = (options) => {
if (!options.component) {
return;
}
options.component = options.component.trim().toLowerCase();
const componentValidated = validateComponent(options.component);
if (componentValidated === true) {
const component = formatComponent(options.component);
if (component !== options.component) {
logger.warn(
`Component "${chalk.underline(chalk.red(options.component))}" was updated to ` +
`"${chalk.underline(chalk.green(component))}"`
);
}
return component;
} else {
logger.warn(`Component "${chalk.underline(chalk.red(options.component))}" is not valid: ${componentValidated}`);
}
};
/**
* Get the initial message value.
*
* @param {Object} options
* @returns {string|undefined}
*/
const getInitialMessageValue = (options) => {
if (!options.message) {
return;
}
return options.message.trim();
};
/**
* Get the current version from the project /version.php file.
*
* @returns {Promise<string>}
*/
export const getCurrentVersion = async () => {
const versionRegex = new RegExp(/^ *\$release *= *['\"](?<release>[^ \+]+\+?) *\(Build:.*/m);
try {
const versionFile = await readFile('public/version.php', 'utf8');
const match = versionFile.match(versionRegex);
if (match) {
return match.groups.release;
}
} catch(error) {
logger.error('Unable to read the version file');
}
return "Unreleased";
}
-30
View File
@@ -1,30 +0,0 @@
#!/usr/bin/env node
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import winston from 'winston';
const logger = winston.createLogger({
level: 'info',
format: winston.format.combine(
winston.format.colorize(),
winston.format.simple()
),
transports: [
new winston.transports.Console(),
],
});
export default logger;
-194
View File
@@ -1,194 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import yaml from 'js-yaml';
import path from 'path';
import { writeFile, mkdir, readdir, readFile, unlink } from 'fs/promises';
import { isValidNoteName, sortNoteTypes } from './noteTypes.mjs';
import { sortComponents } from './components.mjs';
const unreleasedPath = path.resolve('.upgradenotes');
/**
* Get the filename for the note.
*
* @param {string} issueNumnber The issue number
* @returns {string}
*/
const getFilename = (issueNumber) => {
const dateTimeFormat = new Intl.DateTimeFormat(undefined, {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
fractionalSecondDigits: 2,
timeZone: 'UTC',
});
const date = Object.fromEntries(
dateTimeFormat.formatToParts(new Date())
.filter((p) => p.type !== 'literal')
.map((p) => ([p.type, p.value]))
);
const dateString = [
date.year,
date.month,
date.day,
date.hour,
date.minute,
date.second,
date.fractionalSecond,
].join('');
return `${issueNumber}-${dateString}.yml`;
};
/**
* Create a new note.
*
* @param {string} issueNumber
* @param {[type: string]: {message: string}} messages
* @returns {string} The path to the note on disk
*/
export const createNote = async (
issueNumber,
messages,
notePath,
) => {
const note = {
issueNumber,
notes: {},
};
messages.forEach(({components, type, message}) => {
note.notes[components] = note.notes[components] || [];
note.notes[components].push({message, type});
});
if (!notePath) {
notePath = path.resolve(unreleasedPath, getFilename(issueNumber));
}
const noteContent = yaml.dump(note);
await mkdir(unreleasedPath, {recursive: true});
await writeFile(notePath, noteContent);
return notePath;
};
/**
* Get all unreleased notes.
*
* @returns {Promise<{issueNumber: string, components: string[], types: {[type: string]: {message: string}[]}}[]>
*/
export const getAllNotes = async () => {
const files = await readdir(unreleasedPath);
const notes = files
.filter((file) => file.endsWith('.yml'))
.map(async (file) => {
const filePath = path.resolve(unreleasedPath, file);
const fileContent = await readFile(filePath, 'utf8');
return {
...yaml.load(fileContent),
filePath,
};
});
return Promise.all(notes);
};
/**
* Get the list of notes, grouped by note type, then component.
*
* @returns {Promise<{[type: string]: {[components: string]: {message: string, issueNumber: string}[]}}>}
*/
export const getCombinedNotes = async () => {
const notes = await getAllNotes();
const combinedNotes = {};
notes.forEach((note) => {
Object.entries(note.notes).forEach(([components, data]) => {
data.forEach((entry) => {
if (!isValidNoteName(entry.type)) {
throw new Error(`Invalid note type: "${entry.type}" in file ${note.filePath}`);
}
combinedNotes[entry.type] = combinedNotes[entry.type] || {};
combinedNotes[entry.type][components] = combinedNotes[entry.type][components] || [];
combinedNotes[entry.type][components].push({message: entry.message, issueNumber: note.issueNumber});
});
});
});
return combinedNotes;
};
/**
* Get the list of notes, grouped by component, then by note type.
*
* @returns {Promise<{[component: string]: {[type: string]: {message: string, issueNumber: string}[]}}>}
*/
export const getCombinedNotesByComponent = async () => {
const notes = await getAllNotes();
const combinedNotes = {};
notes.forEach((note) => {
Object.entries(note.notes).forEach(([component, data]) => {
combinedNotes[component] = combinedNotes[component] || {};
data.forEach((entry) => {
if (!isValidNoteName(entry.type)) {
throw new Error(`Invalid note type: "${entry.type}" in file ${note.filePath}`);
}
combinedNotes[component][entry.type] = combinedNotes[component][entry.type] || [];
combinedNotes[component][entry.type].push({
component,
message: entry.message,
issueNumber: note.issueNumber,
type: entry.type,
});
});
});
});
// Sort notes by note type.
Object.entries(combinedNotes).forEach(([component, types]) => {
combinedNotes[component] = Object.fromEntries(
Object.entries(types).sort(([a], [b]) => sortNoteTypes(a, b))
);
});
// Sort components.
return Object.fromEntries(
Object.entries(combinedNotes).sort(([a], [b]) => sortComponents(a, b))
);
};
/**
* Delete all unreleased notes.
*
* @returns {Promise<void>}
*/
export const deleteAllNotes = async () => {
const files = await readdir(unreleasedPath);
return Promise.all(
files
.filter((item, index) => files.indexOf(item) === index)
.filter((file) => file.endsWith('.yml'))
.map((file) => unlink(`${unreleasedPath}/${file}`))
);
};
-80
View File
@@ -1,80 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* The note types.
*
* Matches the suggested order in https://keepachangelog.com/en/1.1.0/.
* @type {Object<string, string>}
*/
const noteTypes = {
'improved': 'Added',
'changed': 'Changed',
'deprecated': 'Deprecated',
'removed': 'Removed',
'fixed': 'Fixed',
};
/**
* The preferred order of note types.
*
* @type {string[]}
*/
const preferredOrder = Object.keys(noteTypes);
/**
* Comparison method to sort note types.
*
* @param {String} a
* @param {String} b
* @returns {Number}
*/
export const sortNoteTypes = (a, b) => {
const aIndex = preferredOrder.indexOf(a);
const bIndex = preferredOrder.indexOf(b);
if (aIndex === -1) {
return 1;
}
if (bIndex === -1) {
return -1;
}
return aIndex - bIndex;
};
/**
* Get the note names.
*
* @returns {string[]}
*/
export const getNoteNames = () => Object.keys(noteTypes);
/**
* Get the human-readable note name.
*
* @param {string} type
* @returns {string}
*/
export const getNoteName = (type) => noteTypes[type];
/**
* Whether the note name is valid.
*
* @param {string} type
* @returns {boolean}
*/
export const isValidNoteName = (type) => noteTypes[type] !== undefined;
-153
View File
@@ -1,153 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import inquirer from 'inquirer';
import SearchList from 'inquirer-search-list';
import { getNoteNames } from './noteTypes.mjs';
import { getAllComponents } from './components.mjs';
import {
formatComponent,
formatIssueNumber,
validateComponent,
validateIssueNumber,
} from './helpers.mjs';
/**
* A Search List which accepts an initial value.
*/
class SearchListWithInitialValue extends SearchList {
constructor(options, ...args) {
super(options, ...args);
if (options.default) {
const pointer = this.filterList.findIndex((item) => {
return item.value === options.default;
});
if (pointer > -1) {
this.pointer = pointer;
}
}
}
}
inquirer.registerPrompt('search-list', SearchListWithInitialValue);
/**
* Get the issue type prompt.
*
* @param {string} defaultData The initially selected value
* @returns {Object}
*/
export const getTypePrompt = (defaultData) => ({
default: defaultData,
type: 'search-list',
message: 'Type of change',
name: 'type',
choices: getNoteNames(),
validate: (selection) => {
if (selection.length < 1) {
return 'You must select at least one type of change';
}
return true;
},
});
/**
* Get the component prompt.
*
* @param {string} [defaultValue='core'] The initally selected value.
* @returns
*/
export const getComponentsPrompt = (defaultValue) => {
if (!defaultValue ) {
defaultValue = 'core';
}
return {
choices: getAllComponents(),
default: defaultValue,
type: 'search-list',
message: 'Component',
name: 'components',
validate: validateComponent,
filter: formatComponent,
};
};
/**
* Get the issue number prompt as an inline input.
*
* @param {string} defaultData
* @returns {object}
*/
export const getIssuePrompt = (defaultData) => ({
default: defaultData,
type: 'input',
message: 'Tracker issue number',
name: 'issueNumber',
validate: validateIssueNumber,
filter: formatIssueNumber,
});
/**
* Get a message prompt.
*
* @param {string} defaultData
* @returns
*/
export const getMessagePromptEditor = (defaultData) => ({
default: defaultData,
type: process.stdin.isTTY ? 'editor' : 'input',
postfix: '.md',
message: 'Message',
name: 'message',
waitUserInput: false,
validate: (input) => {
if (!input) {
return 'You must provide a message';
}
return true;
},
// Remove any trailing whitespace.
filter: (input) => input.split('\n').map((line) => line.trimEnd()).join('\n'),
});
/**
* Get a message prompt.
*
* @param {string} defaultData
* @returns
*/
export const getMessagePromptInput = (defaultData) => ({
default: defaultData,
type: 'input',
message: 'Message (leave empty to use editor)',
name: 'message',
filter: (input) => input.trim(),
});
/**
* Get a prompt to ask the user if they wish to add another entry.
*
* @returns {Object}
*/
export const getAddAnotherPrompt = () => ({
type: 'confirm',
message: 'Do you want to add another note?',
default: false,
name: 'addAnother',
});
-58
View File
@@ -1,58 +0,0 @@
#!/usr/bin/env node
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import { getAllComponents } from './components.mjs';
import { getCombinedNotesByComponent } from './note.mjs';
import logger from './logger.mjs';
import { existsSync } from 'fs';
/**
* Generate links to component-specific upgrade notes for each component.
*
* @param {string|undefined} tag The git tag to link to
* @returns {Promise<void>}
*/
export default async (tag) => {
const notes = await getCombinedNotesByComponent();
if (Object.keys(notes).length === 0) {
logger.warn('No notes to generate');
return;
}
if (!tag) {
logger.error('No tag provided');
return;
}
// Generate the links for the components which have upgrade notes in this release.
let upgradeNotes = `### Component API updates\n<!--cspell: disable -->\n\n`;
const componentList = Object.fromEntries(
Object.values(getAllComponents()).map(({path, value}) => [value, path]),
);
Object.entries(notes)
.map(([component]) => ({
component,
componentPath: componentList[component],
}))
.filter(({ componentPath }) => existsSync(`./${componentPath}/UPGRADING.md`))
.forEach(({component, componentPath}) => {
upgradeNotes += `- [${component}](https://github.com/moodle/moodle/blob/${tag}/${componentPath}/UPGRADING.md)\n`;
});
console.log(upgradeNotes);
};
-142
View File
@@ -1,142 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* Component Library build tasks.
*
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Get a child path of the component library.
*
* @param {string} path
* @returns {string}
*/
const getCLPath = path => `public/admin/tool/componentlibrary/${path}`;
/**
* Get a spawn handler.
*
* This is a generic function to write the spawn output, and then to exit if required and mark the async task as
* complete.
*
* @param {Promise} done
* @returns {function}
*/
const getSpawnHandler = done => (error, result, code) => {
grunt.log.write(result);
if (error) {
grunt.log.error(result.stdout);
process.exit(code);
}
done();
};
/**
* Spawn a function against Node with the provided args.
*
* @param {array} args
* @returns {object}
*/
const spawnNodeCall = (args) => grunt.util.spawn({
cmd: 'node',
args,
}, getSpawnHandler(grunt.task.current.async()));
/**
* Build the docs using Hugo.
*
* @returns {Object} Reference to the spawned task
*/
const docsBuild = () => spawnNodeCall([
'node_modules/hugo-bin/cli.js',
'--config', getCLPath('config.yml'),
'--cleanDestinationDir',
]);
/**
* Build the docs index using the hugo-lunr-indexer.
*
* @returns {Object} Reference to the spawned task
*/
const indexBuild = () => spawnNodeCall([
'node_modules/hugo-lunr-indexer/bin/hli.js',
'-i', getCLPath('content/**'),
'-o', getCLPath('hugo/site/data/my-index.json'),
'-l', 'yaml',
'-d', '---',
]);
/**
* Build the hugo CSS.
*
* @returns {Object} Reference to the spawned task
*/
const cssBuild = () => spawnNodeCall([
'node_modules/sass/sass.js',
'--style', 'expanded',
'--source-map',
'--embed-sources',
'--precision', 6,
'--load-path', `${process.cwd()}/public`,
getCLPath('hugo/scss/docs.scss'),
getCLPath('hugo/dist/css/docs.css'),
]);
// Register the various component library tasks.
grunt.registerTask('componentlibrary:docsBuild', 'Build the component library', docsBuild);
grunt.registerTask('componentlibrary:cssBuild', 'Build the component library', cssBuild);
grunt.registerTask('componentlibrary:indexBuild', 'Build the component library', indexBuild);
grunt.registerTask('componentlibrary', 'Build the component library', [
'componentlibrary:docsBuild',
'componentlibrary:cssBuild',
'componentlibrary:indexBuild',
]);
grunt.config.merge({
watch: {
componentLibraryDocs: {
files: [
getCLPath('content/**/*.md'),
getCLPath('hugo'),
],
tasks: ['componentlibrary:docsBuild', 'componentlibrary:indexBuild'],
},
componentLibraryCSS: {
files: [
getCLPath('hugo/scss/**/*.scss'),
'hugo',
],
tasks: ['componentlibrary:cssBuild'],
},
},
});
// Add the 'componentlibrary' task as a startup task.
grunt.moodleEnv.startupTasks.push('componentlibrary');
return {
docsBuild,
cssBuild,
indexBuild,
};
};
-72
View File
@@ -1,72 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
const files = grunt.moodleEnv.files;
// Project configuration.
grunt.config.merge({
eslint: {
// Even though warnings dont stop the build we don't display warnings by default because
// at this moment we've got too many core warnings.
// To display warnings call: grunt eslint --show-lint-warnings
// To fail on warnings call: grunt eslint --max-lint-warnings=0
// Also --max-lint-warnings=-1 can be used to display warnings but not fail.
options: {
quiet: (!grunt.option('show-lint-warnings')) && (typeof grunt.option('max-lint-warnings') === 'undefined'),
maxWarnings: ((typeof grunt.option('max-lint-warnings') !== 'undefined') ? grunt.option('max-lint-warnings') : -1)
},
// Check AMD src files.
amd: {src: files ? files : grunt.moodleEnv.amdSrc},
// Check YUI module source files.
yui: {src: files ? files : grunt.moodleEnv.yuiSrc},
// Check React source files.
'react': {
options: {
fix: true,
},
src: files ? files : grunt.moodleEnv.reactSrc,
},
},
});
grunt.loadNpmTasks('grunt-eslint');
// On watch, we dynamically modify config to build only affected files. This
// method is slightly complicated to deal with multiple changed files at once (copied
// from the grunt-contrib-watch readme).
let changedFiles = Object.create(null);
const onChange = grunt.util._.debounce(function() {
const files = Object.keys(changedFiles);
grunt.config('eslint.amd.src', files);
grunt.config('eslint.yui.src', files);
changedFiles = Object.create(null);
}, 200);
grunt.event.on('watch', (action, filepath) => {
changedFiles[filepath] = action;
onChange();
});
};
-92
View File
@@ -1,92 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Get the list of feature files to pass to the gherkin linter.
*
* @returns {Array}
*/
const getGherkinLintTargets = () => {
if (grunt.moodleEnv.files) {
// Specific files were requested. Only check these.
return grunt.moodleEnv.files;
}
if (grunt.moodleEnv.inComponent) {
return [`${grunt.moodleEnv.runDir}/tests/behat/*.feature`];
}
return ['**/tests/behat/*.feature'];
};
const handler = function() {
const done = this.async();
const options = grunt.config('gherkinlint.options');
// Grab the gherkin-lint linter and required scaffolding.
const linter = require('gherkin-lint/dist/linter.js');
const featureFinder = require('gherkin-lint/dist/feature-finder.js');
const configParser = require('gherkin-lint/dist/config-parser.js');
const formatter = require('gherkin-lint/dist/formatters/stylish.js');
// Run the linter.
return linter.lint(
featureFinder.getFeatureFiles(grunt.file.expand(options.files)),
configParser.getConfiguration(configParser.defaultConfigFileName)
)
.then(results => {
// Print the results out uncondtionally.
formatter.printResults(results);
return results;
})
.then(results => {
// Report on the results.
// The done function takes a bool whereby a falsey statement causes the task to fail.
return results.every(result => result.errors.length === 0);
})
.then(done); // eslint-disable-line promise/no-callback-in-promise
};
grunt.registerTask('gherkinlint', 'Run gherkinlint against the current directory', handler);
grunt.config.set('gherkinlint', {
options: {
files: getGherkinLintTargets(),
}
});
grunt.config.merge({
watch: {
gherkinlint: {
files: [grunt.moodleEnv.inComponent ? 'tests/behat/*.feature' : '**/tests/behat/*.feature'],
tasks: ['gherkinlint'],
},
},
});
// Add the 'gherkinlint' task as a startup task.
grunt.moodleEnv.startupTasks.push('gherkinlint');
return handler;
};
-139
View File
@@ -1,139 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Generate the PHPCS configuration.
*
* @param {Object} thirdPartyPaths
*/
const phpcsIgnore = (thirdPartyPaths) => {
const {toXML} = require('jstoxml');
const config = {
_name: 'ruleset',
_attrs: {
name: "MoodleCore",
},
_content: [
{
rule: {
_attrs: {
ref: './phpcs.xml.dist',
},
},
},
],
};
thirdPartyPaths.forEach(library => {
config._content.push({
'exclude-pattern': library,
});
});
grunt.file.write('phpcs.xml', toXML(config, {
header: true,
indent: ' ',
}) + "\n");
};
/**
* Extracts ignore entries from a local ignore file.
*
* @param {string} componentPath the file path to the component, relative to the code base directory
* @param {string} ignoreFilePath the path to the ignore file
* @return {array} array of ignore paths to be included in the global ignore files
*/
const getEntriesFromLocalIgnoreFile = (componentPath, ignoreFilePath) => {
const ignorePaths = [];
if (grunt.file.exists(ignoreFilePath)) {
const ignoreFile = grunt.file.read(ignoreFilePath);
const entries = ignoreFile.split('\n');
entries.forEach(entry => {
entry = entry.trim();
if (entry.length > 0 && !entry.startsWith('#') && !entry.startsWith('!')) {
while (entry.startsWith('/')) {
entry = entry.substring(1);
}
ignorePaths.push(componentPath + '/' + entry);
}
});
}
return ignorePaths;
};
/**
* Generate ignore files (utilising thirdpartylibs.xml data)
*/
const handler = function() {
const path = require('path');
const ComponentList = require(path.join(process.cwd(), '.grunt', 'components.js'));
// An array of paths to third party directories.
const thirdPartyPaths = ComponentList.getThirdPartyPaths();
const localStylelintIgnorePaths = [];
const localEslintIgnorePaths = [];
ComponentList.getComponentPaths(process.cwd() + '/').forEach(componentPath => {
const localEslintIgnorePath = process.cwd() + '/' + componentPath + '/.eslintignore';
const localEslintIgnoreEntries = getEntriesFromLocalIgnoreFile(componentPath, localEslintIgnorePath);
if (localEslintIgnoreEntries.length > 0) {
localEslintIgnorePaths.push(...localEslintIgnoreEntries);
}
const localStylelintIgnorePath = process.cwd() + '/' + componentPath + '/.stylelintignore';
const localStylelintIgnoreEntries = getEntriesFromLocalIgnoreFile(componentPath, localStylelintIgnorePath);
if (localStylelintIgnoreEntries.length > 0) {
localStylelintIgnorePaths.push(...localStylelintIgnoreEntries);
}
});
// Generate .eslintignore.
const eslintIgnores = [
'# Generated by "grunt ignorefiles"',
// Do not ignore the .grunt directory.
'!/.grunt',
// Ignore all yui/src meta directories and build directories.
'*/**/yui/src/*/meta/',
'*/**/build/',
].concat(thirdPartyPaths).concat(localEslintIgnorePaths);
grunt.file.write('.eslintignore', eslintIgnores.join('\n') + '\n');
// Generate .stylelintignore.
const stylelintIgnores = [
'# Generated by "grunt ignorefiles"',
'**/yui/build/*',
'public/theme/boost/style/moodle.css',
'public/theme/classic/style/moodle.css',
'jsdoc/styles/*.css',
'public/admin/tool/componentlibrary/hugo/dist/css/docs.css',
].concat(thirdPartyPaths).concat(localStylelintIgnorePaths);
grunt.file.write('.stylelintignore', stylelintIgnores.join('\n') + '\n');
phpcsIgnore(thirdPartyPaths);
};
grunt.registerTask('ignorefiles', 'Generate ignore files for linters', handler);
return handler;
};
-218
View File
@@ -1,218 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/**
* Function to generate the destination for the minification task
* (e.g. build/file.min.js). This function will be passed to
* the rename property of files array when building dynamically:
* http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically
*
* @param {String} destPath the current destination
* @param {String} srcPath the matched src path
* @return {String} The rewritten destination path.
*/
const babelRename = function(destPath, srcPath) {
destPath = srcPath.replace(`amd/src`, `amd/build`);
destPath = destPath.replace(/\.js$/, '.min.js');
return destPath;
};
module.exports = grunt => {
// Load the React build tasks.
require('./react')(grunt);
// Load the Ignorefiles tasks.
require('./ignorefiles')(grunt);
// Load the Shifter tasks.
require('./shifter')(grunt);
// Load ESLint.
require('./eslint')(grunt);
// Load jsconfig.
require('./jsconfig')(grunt);
// Load JSDoc.
require('./jsdoc')(grunt);
const path = require('path');
// Register JS tasks.
grunt.registerTask('yui', ['eslint:yui', 'shifter']);
grunt.registerTask('amd', ['ignorefiles', 'eslint:amd', 'rollup']);
grunt.registerTask('js', ['amd', 'yui', 'react']);
// Register NPM tasks.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-rollup');
const babelTransform = require('@babel/core').transform;
const babel = (options = {}) => {
return {
name: 'babel',
transform: (code, id) => {
grunt.log.debug(`Transforming ${id}`);
options.filename = id;
const transformed = babelTransform(code, options);
return {
code: transformed.code,
map: transformed.map
};
}
};
};
// Note: We have to use a rate limit plugin here because rollup runs all tasks asynchronously and in parallel.
// When we kick off a full run, if we kick off a rollup of every file this will fork-bomb the machine.
// To work around this we use a concurrent Promise queue based on the number of available processors.
const rateLimit = () => {
const queue = [];
let queueRunner;
const startQueue = () => {
if (queueRunner) {
return;
}
queueRunner = setTimeout(() => {
const limit = Math.max(1, require('os').cpus().length / 2);
grunt.log.debug(`Starting rollup with queue size of ${limit}`);
runQueue(limit);
}, 100);
};
// The queue runner will run the next `size` items in the queue.
const runQueue = (size = 1) => {
queue.splice(0, size).forEach(resolve => {
grunt.log.debug(`Item resolved. Kicking off next one.`);
resolve();
});
};
return {
name: 'ratelimit',
// The options hook is run in parallel.
// We can return an unresolved Promise which is queued for later resolution.
options: async(options) => {
return new Promise(resolve => {
queue.push(resolve);
startQueue();
return options;
});
},
// When an item in the queue completes, start the next item in the queue.
generateBundle: (options, bundle) => {
grunt.log.debug(`Finished output phase for ${Object.keys(bundle).join(', ')}`);
runQueue();
},
};
};
const terser = require('rollup-plugin-terser').terser;
grunt.config.merge({
rollup: {
options: {
format: 'esm',
dir: 'output',
sourcemap: true,
treeshake: false,
context: 'window',
plugins: [
rateLimit(),
babel({
sourceMaps: true,
comments: false,
compact: false,
plugins: [
'transform-es2015-modules-amd-lazy',
'system-import-transformer',
// This plugin modifies the Babel transpiling for "export default"
// so that if it's used then only the exported value is returned
// by the generated AMD module.
//
// It also adds the Moodle plugin name to the AMD module definition
// so that it can be imported as expected in other modules.
path.resolve('.grunt/babel-plugin-add-module-to-define.js')
],
presets: [
['@babel/preset-env', {
modules: false,
useBuiltIns: false
}]
]
}),
terser({
// Do not mangle variables.
// Makes debugging easier.
mangle: false,
}),
],
},
dist: {
files: [{
expand: true,
src: grunt.moodleEnv.files ? grunt.moodleEnv.files : grunt.moodleEnv.amdSrc,
rename: babelRename
}],
},
},
});
grunt.config.merge({
watch: {
amd: {
files: grunt.moodleEnv.inComponent
? ['amd/src/*.js', 'amd/src/**/*.js']
: ['**/amd/src/**/*.js'],
tasks: ['amd']
},
},
});
// Add the 'js' task as a startup task.
grunt.moodleEnv.startupTasks.push('js');
// On watch, we dynamically modify config to build only affected files. This
// method is slightly complicated to deal with multiple changed files at once (copied
// from the grunt-contrib-watch readme).
let changedFiles = Object.create(null);
const onChange = grunt.util._.debounce(function() {
const files = Object.keys(changedFiles);
grunt.config('rollup.dist.files', [{expand: true, src: files, rename: babelRename}]);
changedFiles = Object.create(null);
}, 200);
grunt.event.on('watch', function(action, filepath) {
changedFiles[filepath] = action;
onChange();
});
return {
babelRename,
};
};
-83
View File
@@ -1,83 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
// @ts-nocheck
/**
* @copyright 2022 Andrew Lyons <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
const configuration = {
compilerOptions: {
baseUrl: ".",
paths: {
},
target: "es2015",
allowSyntheticDefaultImports: false,
},
exclude: [
"node_modules",
],
include: [],
};
/**
* Generate jsconfig.json with AMD module path aliases for all components.
*
* @param {object} grunt The Grunt instance.
*/
const generateJsconfig = (grunt) => {
const jsconfigData = Object.assign({}, configuration);
const path = require('path');
const {fetchComponentData} = require(path.join(process.cwd(), '.grunt', 'components.js'));
const componentData = fetchComponentData().components;
for (const [thisPath, component] of Object.entries(componentData)) {
jsconfigData.compilerOptions.paths[`${component}/*`] = [`${thisPath}/amd/src/*`];
jsconfigData.include.push(`${thisPath}/amd/src/**/*`);
}
grunt.file.write('jsconfig.json', JSON.stringify(jsconfigData, null, " ") + "\n");
grunt.log.write('✓ Generating jsconfig.json\n');
};
/**
* Generate tsconfig.aliases.json with TypeScript path aliases for all ESM components.
*
* @returns {Promise<void>}
*/
const generateTsAliases = async() => {
const {generateAliases} = await import('../../.esbuild/generate-aliases.mjs');
generateAliases();
};
module.exports = (grunt) => {
const handler = async function() {
const done = this.async();
try {
generateJsconfig(grunt);
await generateTsAliases();
done();
} catch (err) {
grunt.log.error(err.message);
done(false);
}
};
grunt.registerTask('jsconfig', 'Generate a jsconfig configuration compatible with the LSP', handler);
};
-52
View File
@@ -1,52 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = (grunt) => {
const path = require('path');
grunt.registerTask('jsdoc', 'Generate JavaScript documentation using jsdoc', function() {
const done = this.async();
const configuration = path.resolve('.grunt/jsdoc/jsdoc.conf.js');
grunt.util.spawn({
cmd: 'jsdoc',
args: [
'--configure',
configuration,
]
}, function(error, result, code) {
if (result.stdout) {
grunt.log.write(result.stdout);
}
if (result.stderr) {
grunt.log.error(result.stderr);
}
if (error) {
grunt.fail.fatal(`JSDoc failed with error code ${code}`);
} else {
grunt.log.write('JSDoc completed successfully'.green);
}
done();
});
});
};
-111
View File
@@ -1,111 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
// @ts-nocheck
/**
* Grunt tasks for building React components.
*
* @copyright Meirza <meirza.arson@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Register react task — build or watch React components.
*
* Modes:
* grunt react — production build
* grunt react:dev — development build (sourcemaps, no minification)
* grunt react:watch — esbuild native watch (dev mode, incremental context)
*
* Note: react:watch uses esbuild's own context.watch() and is intentionally
* separate from grunt-contrib-watch. This keeps esbuild's incremental build
* graph alive between rebuilds rather than restarting from scratch on each change.
*/
grunt.registerTask('react', 'Build all React components', function(mode) {
const done = this.async();
const isWatch = mode === 'watch';
const isDev = isWatch || mode === 'dev';
if (isWatch) {
const path = require('path');
const {spawn} = require('child_process');
// Run ESLint on the rebuilt source files in check-only mode (no --fix)
// to avoid writing changes that would re-trigger esbuild.
const eslintBin = path.join(grunt.moodleEnv.gruntFilePath, 'node_modules', '.bin', 'eslint');
const onRebuild = (srcFiles) => {
if (srcFiles.length === 0) {
return;
}
const absSrcFiles = srcFiles.map(f => path.join(grunt.moodleEnv.gruntFilePath, f));
spawn(eslintBin, absSrcFiles, {stdio: 'inherit'})
.on('error', err => grunt.log.error(`ESLint: ${err.message}`));
};
(async() => {
try {
const {watchComponents} = await import('../../.esbuild/plugin/plugincomponents.mjs');
const { generateAliases } = await import('../../.esbuild/generate-aliases.mjs');
const { buildPluginComponents } = await import('../../.esbuild/plugin/plugincomponents.mjs');
generateAliases();
await buildPluginComponents(isDev);
const ctx = await watchComponents(true, onRebuild);
if (!ctx) {
grunt.log.warn('No React source files found. Nothing to watch.');
done();
return;
}
grunt.log.ok('esbuild is watching for React changes. Press Ctrl+C to stop.');
// Keep the process alive until the user interrupts. done() is intentionally
// not called here — grunt's async mechanism holds the process open.
process.on('SIGINT', async() => {
await ctx.dispose();
done();
});
} catch (err) {
grunt.log.error(err.message);
done(false);
}
})();
return;
}
grunt.log.writeln(`Building React components in ${isDev ? 'DEVELOPMENT' : 'PRODUCTION'} mode...`);
(async() => {
try {
const {generateAliases} = await import('../../.esbuild/generate-aliases.mjs');
const {buildPluginComponents} = await import('../../.esbuild/plugin/plugincomponents.mjs');
generateAliases();
await buildPluginComponents(isDev);
done();
} catch (err) {
grunt.log.error(err.message);
done(false);
}
})();
});
};
-43
View File
@@ -1,43 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
grunt.loadNpmTasks('grunt-sass');
grunt.config.merge({
sass: {
dist: {
files: {
"public/theme/boost/style/moodle.css": "public/theme/boost/scss/preset/default.scss",
"public/theme/classic/style/moodle.css": "public/theme/classic/scss/classicgrunt.scss"
}
},
options: {
implementation: require('sass'),
includePaths: [
"public/theme/boost/scss/",
"public/theme/classic/scss/",
]
}
},
});
};
-155
View File
@@ -1,155 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
/* eslint-env node */
module.exports = grunt => {
/**
* Shifter task. Is configured with a path to a specific file or a directory,
* in the case of a specific file it will work out the right module to be built.
*
* Note that this task runs the invidiaul shifter jobs async (becase it spawns
* so be careful to to call done().
*/
const handler = function() {
const done = this.async();
const options = grunt.config('shifter.options');
const async = require('async');
const path = require('path');
// Run the shifter processes one at a time to avoid confusing output.
async.eachSeries(options.paths, function(src, filedone) {
var args = [];
args.push(path.normalize(process.cwd() + '/node_modules/shifter/bin/shifter'));
// Always ignore the node_modules directory.
args.push('--excludes', 'node_modules');
// Determine the most appropriate options to run with based upon the current location.
if (grunt.file.isMatch('**/yui/**/*.js', src)) {
// When passed a JS file, build our containing module (this happen with
// watch).
grunt.log.debug('Shifter passed a specific JS file');
src = path.dirname(path.dirname(src));
options.recursive = false;
} else if (grunt.file.isMatch('**/yui/src', src)) {
// When in a src directory --walk all modules.
grunt.log.debug('In a src directory');
args.push('--walk');
options.recursive = false;
} else if (grunt.file.isMatch('**/yui/src/*', src)) {
// When in module, only build our module.
grunt.log.debug('In a module directory');
options.recursive = false;
} else if (grunt.file.isMatch('**/yui/src/*/js', src)) {
// When in module src, only build our module.
grunt.log.debug('In a source directory');
src = path.dirname(src);
options.recursive = false;
}
if (grunt.option('watch')) {
grunt.fail.fatal('The --watch option has been removed, please use `grunt watch` instead');
}
// Add the stderr option if appropriate
if (grunt.option('verbose')) {
args.push('--lint-stderr');
}
if (grunt.option('no-color')) {
args.push('--color=false');
}
var execShifter = function() {
grunt.log.ok("Running shifter on " + src);
grunt.util.spawn({
cmd: "node",
args: args,
opts: {cwd: src, stdio: 'inherit', env: process.env}
}, function(error, result, code) {
if (code) {
grunt.fail.fatal('Shifter failed with code: ' + code);
} else {
grunt.log.ok('Shifter build complete.');
filedone();
}
});
};
// Actually run shifter.
if (!options.recursive) {
execShifter();
} else {
// Check that there are yui modules otherwise shifter ends with exit code 1.
if (grunt.file.expand({cwd: src}, '**/yui/src/**/*.js').length > 0) {
args.push('--recursive');
execShifter();
} else {
grunt.log.ok('No YUI modules to build.');
filedone();
}
}
}, done);
};
// Register the shifter task.
grunt.registerTask('shifter', 'Run Shifter against the current directory', handler);
// Configure it.
grunt.config.set('shifter', {
options: {
recursive: true,
// Shifter takes a relative path.
paths: grunt.moodleEnv.files ? grunt.moodleEnv.files : [grunt.moodleEnv.runDir]
}
});
grunt.config.merge({
watch: {
yui: {
files: grunt.moodleEnv.inComponent
? ['yui/src/*.json', 'yui/src/**/*.js']
: ['**/yui/src/**/*.js'],
tasks: ['yui']
},
},
});
// On watch, we dynamically modify config to build only affected files. This
// method is slightly complicated to deal with multiple changed files at once (copied
// from the grunt-contrib-watch readme).
let changedFiles = Object.create(null);
const onChange = grunt.util._.debounce(function() {
const files = Object.keys(changedFiles);
grunt.config('shifter.options.paths', files);
changedFiles = Object.create(null);
}, 200);
grunt.event.on('watch', (action, filepath) => {
changedFiles[filepath] = action;
onChange();
});
return handler;
};
-49
View File
@@ -1,49 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Generate ignore files (utilising thirdpartylibs.xml data)
*/
const handler = function() {
const path = require('path');
// Are we in a YUI directory?
if (path.basename(path.resolve(grunt.moodleEnv.cwd, '../../')) == 'yui') {
grunt.task.run('yui');
// Are we in an AMD directory?
} else if (grunt.moodleEnv.inAMD) {
grunt.task.run('amd');
// Are we in an ESM source directory?
} else if (grunt.moodleEnv.inEsm) {
grunt.task.run('react');
} else {
// Run all of the requested startup tasks.
grunt.moodleEnv.startupTasks.forEach(taskName => grunt.task.run(taskName));
}
};
// Register the startup task.
grunt.registerTask('startup', 'Run the correct tasks for the current directory', handler);
return handler;
};
-35
View File
@@ -1,35 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
// Load the ignorefiles tasks.
require('./ignorefiles')(grunt);
// Load the Style Lint tasks.
require('./stylelint')(grunt);
// Load the SASS tasks.
require('./sass')(grunt);
// Add the 'css' task as a startup task.
grunt.moodleEnv.startupTasks.push('css');
};
-187
View File
@@ -1,187 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2021 Andrew Nicols
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
const getCssConfigForFiles = files => {
return {
stylelint: {
css: {
// Use a fully-qualified path.
src: files,
options: {
quietDeprecationWarnings: true,
configOverrides: {
rules: {
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
}
}
}
},
},
};
};
const getScssConfigForFiles = files => {
return {
stylelint: {
scss: {
options: {
quietDeprecationWarnings: true,
customSyntax: 'postcss-scss',
},
src: files,
},
},
};
};
/**
* Register any stylelint tasks.
*
* @param {Object} grunt
* @param {Array} files
* @param {String} fullRunDir
*/
const registerStyleLintTasks = () => {
const glob = require('glob');
// The stylelinters do not handle the case where a configuration was provided but no files were included.
// Keep track of whether any files were found.
let hasCss = false;
let hasScss = false;
// The stylelint processors do not take a path argument. They always check all provided values.
// As a result we must check through each glob and determine if any files match the current directory.
const scssFiles = [];
const cssFiles = [];
const requestedFiles = grunt.moodleEnv.files;
if (requestedFiles) {
// Grunt was called with a files argument.
// Check whether each of the requested files matches either the CSS or SCSS source file list.
requestedFiles.forEach(changedFilePath => {
let matchesGlob;
// Check whether this watched path matches any watched SCSS file.
matchesGlob = grunt.moodleEnv.scssSrc.some(watchedPathGlob => {
return glob.sync(watchedPathGlob).indexOf(changedFilePath) !== -1;
});
if (matchesGlob) {
scssFiles.push(changedFilePath);
hasScss = true;
}
// Check whether this watched path matches any watched CSS file.
matchesGlob = grunt.moodleEnv.cssSrc.some(watchedPathGlob => {
return glob.sync(watchedPathGlob).indexOf(changedFilePath) !== -1;
});
if (matchesGlob) {
cssFiles.push(changedFilePath);
hasCss = true;
}
});
} else {
// Grunt was called without a list of files.
// The start directory (runDir) may be a child dir of the project.
// Check each scssSrc file to see if it's in the start directory.
// This means that we can lint just mod/*/styles.css if started in the mod directory.
grunt.moodleEnv.scssSrc.forEach(path => {
if (path.startsWith(grunt.moodleEnv.runDir)) {
scssFiles.push(path);
hasScss = true;
}
});
grunt.moodleEnv.cssSrc.forEach(path => {
if (path.startsWith(grunt.moodleEnv.runDir)) {
cssFiles.push(path);
hasCss = true;
}
});
}
// Register the tasks.
const scssTasks = ['sass'];
if (hasScss) {
grunt.config.merge(getScssConfigForFiles(scssFiles));
scssTasks.unshift('stylelint:scss');
}
scssTasks.unshift('ignorefiles');
const cssTasks = ['ignorefiles'];
if (hasCss) {
grunt.config.merge(getCssConfigForFiles(cssFiles));
cssTasks.push('stylelint:css');
}
// The tasks must be registered, even if empty to ensure a consistent command list.
// They jsut won't run anything.
grunt.registerTask('scss', scssTasks);
grunt.registerTask('rawcss', cssTasks);
};
// Register CSS tasks.
grunt.loadNpmTasks('grunt-stylelint');
// Register the style lint tasks.
registerStyleLintTasks();
grunt.registerTask('css', ['scss', 'rawcss']);
const getCoreThemeMatches = () => {
const scssMatch = 'scss/**/*.scss';
if (grunt.moodleEnv.inTheme) {
return [scssMatch];
}
if (grunt.moodleEnv.runDir.startsWith('theme')) {
return [`*/${scssMatch}`];
}
return [`theme/*/${scssMatch}`];
};
// Add the watch configuration for rawcss, and scss.
grunt.config.merge({
watch: {
rawcss: {
files: [
'**/*.css',
],
excludes: [
'**/moodle.css',
'**/editor.css',
'jsdoc/styles/*.css',
],
tasks: ['rawcss']
},
scss: {
files: getCoreThemeMatches(),
tasks: ['scss']
},
},
});
};
-42
View File
@@ -1,42 +0,0 @@
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/* jshint node: true, browser: false */
/* eslint-env node */
/**
* @copyright 2023 Sara Arjona <sara@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
module.exports = grunt => {
/**
* Generate upgradable third-party libraries (utilising thirdpartylibs.xml data)
*/
grunt.registerTask('upgradablelibs', 'Generate upgradable third-party libraries', async function() {
const done = this.async();
const path = require('path');
const ComponentList = require(path.join(process.cwd(), '.grunt', 'components.js'));
// An array of third party libraries that have a newer version in their repositories.
const thirdPartyLibs = await ComponentList.getThirdPartyLibsUpgradable({progress: true});
for (let library of thirdPartyLibs) {
grunt.log.ok(JSON.stringify(Object.assign({}, library), null, 4));
}
done();
});
};
-276
View File
@@ -1,276 +0,0 @@
/**
* This is a wrapper task to handle the grunt watch command. It attempts to use
* Watchman to monitor for file changes, if it's installed, because it's much faster.
*
* If Watchman isn't installed then it falls back to the grunt-contrib-watch file
* watcher for backwards compatibility.
*/
/* eslint-env node */
module.exports = grunt => {
/**
* This is a wrapper task to handle the grunt watch command. It attempts to use
* Watchman to monitor for file changes, if it's installed, because it's much faster.
*
* If Watchman isn't installed then it falls back to the grunt-contrib-watch file
* watcher for backwards compatibility.
*/
const watchHandler = function() {
const async = require('async');
const watchTaskDone = this.async();
let watchInitialised = false;
let watchTaskQueue = {};
let processingQueue = false;
const watchman = require('fb-watchman');
const watchmanClient = new watchman.Client();
// Grab the tasks and files that have been queued up and execute them.
var processWatchTaskQueue = function() {
if (!Object.keys(watchTaskQueue).length || processingQueue) {
// If there is nothing in the queue or we're already processing then wait.
return;
}
processingQueue = true;
// Grab all tasks currently in the queue.
var queueToProcess = watchTaskQueue;
// Reset the queue.
watchTaskQueue = {};
async.forEachSeries(
Object.keys(queueToProcess),
function(task, next) {
var files = queueToProcess[task];
var filesOption = '--files=' + files.join(',');
grunt.log.ok('Running task ' + task + ' for files ' + filesOption);
// Spawn the task in a child process so that it doesn't kill this one
// if it failed.
var args = [task, filesOption];
if (grunt.option('force')) {
args.push('--force');
}
grunt.util.spawn(
{
// Spawn with the grunt bin.
grunt: true,
// Run from current working dir and inherit stdio from process.
opts: {
cwd: grunt.moodleEnv.fullRunDir,
stdio: 'inherit'
},
args: args
},
function(err, res, code) {
if (code !== 0) {
// The grunt task failed.
grunt.log.error(err);
}
// Move on to the next task.
next();
}
);
},
function() {
// No longer processing.
processingQueue = false;
// Once all of the tasks are done then recurse just in case more tasks
// were queued while we were processing.
processWatchTaskQueue();
}
);
};
const originalWatchConfig = grunt.config.get(['watch']);
const watchConfig = Object.keys(originalWatchConfig).reduce(function(carry, key) {
if (key == 'options') {
return carry;
}
const value = originalWatchConfig[key];
const taskNames = value.tasks;
const files = value.files;
let excludes = [];
if (value.excludes) {
excludes = value.excludes;
}
taskNames.forEach(function(taskName) {
carry[taskName] = {
files,
excludes,
};
});
return carry;
}, {});
watchmanClient.on('error', function(error) {
// We have to add an error handler here and parse the error string because the
// example way from the docs to check if Watchman is installed doesn't actually work!!
// See: https://github.com/facebook/watchman/issues/509
if (error.message.match('Watchman was not found')) {
// If watchman isn't installed then we should fallback to the other watch task.
grunt.log.ok('It is recommended that you install Watchman for better performance using the "watch" command.');
// Fallback to the old grunt-contrib-watch task.
grunt.renameTask('watch-grunt', 'watch');
grunt.task.run(['watch']);
// This task is finished.
watchTaskDone(0);
} else {
grunt.log.error(error);
// Fatal error.
watchTaskDone(1);
}
});
watchmanClient.on('subscription', function(resp) {
if (resp.subscription !== 'grunt-watch') {
return;
}
resp.files.forEach(function(file) {
grunt.log.ok('File changed: ' + file.name);
var fullPath = grunt.moodleEnv.fullRunDir + '/' + file.name;
Object.keys(watchConfig).forEach(function(task) {
const fileGlobs = watchConfig[task].files;
var match = fileGlobs.some(function(fileGlob) {
return grunt.file.isMatch(`**/${fileGlob}`, fullPath);
});
if (match) {
// If we are watching a subdirectory then the file.name will be relative
// to that directory. However the grunt tasks expect the file paths to be
// relative to the Gruntfile.js location so let's normalise them before
// adding them to the queue.
var relativePath = fullPath.replace(grunt.moodleEnv.gruntFilePath + '/', '');
if (task in watchTaskQueue) {
if (!watchTaskQueue[task].includes(relativePath)) {
watchTaskQueue[task] = watchTaskQueue[task].concat(relativePath);
}
} else {
watchTaskQueue[task] = [relativePath];
}
}
});
});
processWatchTaskQueue();
});
process.on('SIGINT', function() {
// Let the user know that they may need to manually stop the Watchman daemon if they
// no longer want it running.
if (watchInitialised) {
grunt.log.ok('The Watchman daemon may still be running and may need to be stopped manually.');
}
process.exit();
});
// Initiate the watch on the current directory.
watchmanClient.command(['watch-project', grunt.moodleEnv.fullRunDir], function(watchError, watchResponse) {
if (watchError) {
grunt.log.error('Error initiating watch:', watchError);
watchTaskDone(1);
return;
}
if ('warning' in watchResponse) {
grunt.log.error('warning: ', watchResponse.warning);
}
var watch = watchResponse.watch;
var relativePath = watchResponse.relative_path;
watchInitialised = true;
watchmanClient.command(['clock', watch], function(clockError, clockResponse) {
if (clockError) {
grunt.log.error('Failed to query clock:', clockError);
watchTaskDone(1);
return;
}
// Generate the expression query used by watchman.
// Documentation is limited, but see https://facebook.github.io/watchman/docs/expr/allof.html for examples.
// We generate an expression to match any value in the files list of all of our tasks, but excluding
// all value in the excludes list of that task.
//
// [anyof, [
// [allof, [
// [anyof, [
// ['match', validPath, 'wholename'],
// ['match', validPath, 'wholename'],
// ],
// [not,
// [anyof, [
// ['match', invalidPath, 'wholename'],
// ['match', invalidPath, 'wholename'],
// ],
// ],
// ],
var matchWholeName = fileGlob => ['match', fileGlob, 'wholename'];
var matches = Object.keys(watchConfig).map(function(task) {
const matchAll = [];
matchAll.push(['anyof'].concat(watchConfig[task].files.map(matchWholeName)));
if (watchConfig[task].excludes.length) {
matchAll.push(['not', ['anyof'].concat(watchConfig[task].excludes.map(matchWholeName))]);
}
return ['allof'].concat(matchAll);
});
matches = ['anyof'].concat(matches);
var sub = {
expression: matches,
// Which fields we're interested in.
fields: ["name", "size", "type"],
// Add our time constraint.
since: clockResponse.clock
};
if (relativePath) {
/* eslint-disable camelcase */
sub.relative_root = relativePath;
}
watchmanClient.command(['subscribe', watch, 'grunt-watch', sub], function(subscribeError) {
if (subscribeError) {
// Probably an error in the subscription criteria.
grunt.log.error('failed to subscribe: ', subscribeError);
watchTaskDone(1);
return;
}
grunt.log.ok('Listening for changes to files in ' + grunt.moodleEnv.fullRunDir);
});
});
});
};
// Rename the grunt-contrib-watch "watch" task because we're going to wrap it.
grunt.renameTask('watch', 'watch-grunt');
// Register the new watch handler.
grunt.registerTask('watch', 'Run tasks on file changes', watchHandler);
grunt.config.merge({
watch: {
options: {
nospawn: true // We need not to spawn so config can be changed dynamically.
},
},
});
return watchHandler;
};
-111
View File
@@ -1,111 +0,0 @@
#!/usr/bin/env node
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
import { Argument, Option, program } from 'commander';
import chalk from 'chalk';
import { getNoteNames } from './notes/src/noteTypes.mjs';
import createAction from './notes/src/create.mjs';
import generateAction from './notes/src/generate.mjs';
import generateReleaseNotesLinks from './notes/src/releasenotes.mjs';
import logger from './notes/src/logger.mjs';
console.log(`
${chalk.bold(chalk.underline(chalk.green('Moodle Upgrade Notes Generator')))}
This tool is used to generate the upgrade notes for changes you make in Moodle.
Please remember that the intended audience of these changes is
${chalk.italic('plugin developers')} who need to know how to update their plugins
for a new Moodle version.
Upgrade notes should not be used to document changes for site administrators, or
for internal API changes which are not expected to be used outside of the
relevant component.
`)
program.configureHelp({
helpWidth: 100,
});
program.on('option:verbose', () => {
logger.level = 'verbose';
});
program.addOption(
new Option(
'-v, --verbose',
'Output more information during the generation process',
)
.default(false)
);
// Define the command line options.
program
.command('create')
.summary('Generate a new upgrade note')
.addOption(
new Option('-t, --type <type>', `The type of change to document. Valid types are: ${getNoteNames().join(', ')}`)
)
.addOption(new Option('-i, --issue <issue>', 'The tracker issue number'))
.addOption(new Option('-c, --component <component>', 'The component to write a note for'))
.addOption(new Option(
'-m, --message <message>',
'The message to use for the upgrade note',
))
.action((options) => createAction(options));
program
.command('summary')
.summary('Generate a local copy of the upgrade notes summary')
.addArgument(
new Argument('[version]', 'The Moodle version to create the summary notes for')
)
.action((version) => generateAction(version));
program
.command('releasenotes')
.summary('Generate a list of upgrade notes for individual components in markdown format for the release notes')
.addArgument(
new Argument('[tag]', 'The Moodle tag')
)
.action((tag) => generateReleaseNotesLinks(tag));
program
.command('release')
.summary('Generate the markdown copies of the upgrade notes for a Moodle release')
.addArgument(
new Argument('[version]', 'The Moodle version to create the release notes for')
)
.addOption(
new Option(
'--generate-upgrade-notes',
'Generate the UPGRADING.md notes for the release. ' +
'Note: This option is intended for use by the release manager when generating the upgrade notes.',
)
.default(true)
)
.addOption(
new Option(
'-d, --delete-notes',
'Delete the notes after generating the UPGRADING.md notes for the release. ' +
'Note: This option is intended for use by the release manager when generating the upgrade notes.' +
'This option has no effect unless --generate-upgrade-notes is also set.'
)
.default(false)
)
.action((version, options) => generateAction(version, options));
program.parse();
-2
View File
@@ -1,2 +0,0 @@
**/amd/**
/*.js
-58
View File
@@ -1,58 +0,0 @@
// NOTE: We use eslint now. This file is used only by shifter. We keep the configuration
// here because shifter uses jshint after modules have been concating. Eslint can't
// currently do this.
{
"asi": false,
"bitwise": true,
"boss": false,
"browser": true,
"curly": true,
"debug": false,
"eqeqeq": false,
"eqnull": false,
"es5": false,
"esnext": false,
"evil": false,
"expr": false,
"forin": false,
"funcscope": false,
"globalstrict": false,
"immed": true,
"indent": 4,
"iterator": false,
"lastsemic": false,
"latedef": true,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"maxerr": 500,
"maxlen": 132,
"multistr": false,
"newcap": true,
"noarg": true,
"noempty": true,
"nomen": false,
"onecase": false,
"onevar": false,
"passfail": false,
"plusplus": false,
"predef": [
"M",
"define",
"require"
],
"proto": false,
"regexdash": false,
"regexp": false,
"scripturl": false,
"shadow": false,
"smarttabs": false,
"strict": false,
"sub": false,
"supernew": false,
"trailing": true,
"undef": true,
"unused": true,
"white": false,
"yui": true
}
-1
View File
@@ -1 +0,0 @@
lts/jod
-40
View File
@@ -1,40 +0,0 @@
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Helper file for PhpStorm, and other IDEs, to provide better code completion.
*
* @package core
* @copyright 2024 Andrew Lyons <andrew@nicols.co.uk>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace PHPSTORM_META;
// Assume that anything returned by \core\di::get('...') is an instance of the first argument.
override(\core\di::get(0), map([
'' => '@',
]));
// Assume that anything returned by \Psr\Container\ContainerInterface::get('...') is an instance of the first argument.
override(\Psr\Container\ContainerInterface::get(0), map([
'' => '@',
]));
// Assume that anything returned by \DI\Container::get('...') is an instance of the first argument.
override(\DI\Container::get(0), map([
'' => '@',
]));
-5
View File
@@ -1,5 +0,0 @@
{
"coverage": false,
"lint": "config",
"clean": true
}
-107
View File
@@ -1,107 +0,0 @@
{
"customSyntax": "postcss-scss",
"plugins": [
"stylelint-csstree-validator"
],
"rules": {
"csstree/validator": {
"syntaxExtensions": [
"sass"
]
},
"at-rule-empty-line-before": [ "always",
{"except": [ "blockless-after-blockless"], ignore: ["after-comment", "inside-block"]}
],
"at-rule-name-case": "lower",
"at-rule-name-space-after": "always-single-line",
"at-rule-no-unknown": null, # Enabled for non-scss in grunt.
"at-rule-semicolon-newline-after": "always",
"at-rule-semicolon-space-before": "never",
"block-closing-brace-newline-after": "always",
"block-closing-brace-newline-before": "always",
"block-closing-brace-space-before": "always-single-line",
"block-no-empty": true,
"block-opening-brace-newline-after": "always",
"block-opening-brace-space-after": "always-single-line",
"block-opening-brace-space-before": "always",
"color-hex-case": ["lower", { "severity": "warning" }],
"color-hex-length": ["short", { "severity": "warning" }],
"color-no-invalid-hex": true,
"declaration-bang-space-after": "never",
"declaration-bang-space-before": "always",
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-semicolon-newline-after": "always-multi-line",
"declaration-block-semicolon-space-after": "always-single-line",
"declaration-block-semicolon-space-before": "never",
"declaration-block-single-line-max-declarations": 1,
"declaration-block-trailing-semicolon": "always",
"declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never",
"declaration-no-important": true,
"font-family-no-duplicate-names": true,
"function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line",
"function-comma-space-before": "never",
"function-linear-gradient-no-nonstandard-direction": true,
"function-max-empty-lines": 0,
"function-name-case": "lower",
"function-parentheses-newline-inside": "always-multi-line",
"function-parentheses-space-inside": "never-single-line",
"function-url-scheme-disallowed-list": ["data"],
"function-whitespace-after": "always",
"indentation": 4,
"keyframe-declaration-no-important": true,
"length-zero-no-unit": [true, { "severity": "warning" }],
"max-empty-lines": 2,
"max-line-length": [132, { "severity": "warning" }],
"media-feature-colon-space-after": "always",
"media-feature-colon-space-before": "never",
"media-feature-parentheses-space-inside": "never",
"media-feature-range-operator-space-after": "always",
"media-feature-range-operator-space-before": "always",
"media-query-list-comma-newline-after": "always-multi-line",
"media-query-list-comma-space-after": "always-single-line",
"media-query-list-comma-space-before": "never",
"no-empty-source": true,
"no-eol-whitespace": true,
"no-extra-semicolons": [true, { "severity": "warning" }],
"no-invalid-double-slash-comments": true,
"no-unknown-animations": true,
"property-case": "lower",
"property-no-unknown": true,
"selector-attribute-brackets-space-inside": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-operator-space-before": "never",
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-list-comma-newline-after": "always",
"selector-list-comma-space-before": "never",
"selector-max-empty-lines": 0,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-no-unknown": true,
"selector-type-case": "lower",
"selector-type-no-unknown": true,
"string-no-newline": true,
"time-min-milliseconds": 100,
"unit-disallowed-list": ["pt"],
"unit-case": "lower",
"unit-no-unknown": true,
"value-keyword-case": ["lower", {"ignoreKeywords": ["/(@|$)/"]}],
"value-list-comma-newline-after": "always-multi-line",
"value-list-comma-space-after": "always-single-line",
"value-list-comma-space-before": "never",
},
"overrides": [
{
"files": ["**/yui/**/*.css"],
"rules": {
}
}
]
}
@@ -1,7 +0,0 @@
issueNumber: MDL-51152
notes:
enrol_manual:
- message: >-
The unused parameter 'roleid' has been removed from the external
function `unenrol_users()`
type: removed
@@ -1,22 +0,0 @@
issueNumber: MDL-71368
notes:
core:
- message: >
The `arg_separator.output` has been changed from a default of `amp;` to
a default of `&` in line with PHP defaults.
If you were previously relying on the legacy default when using
`http_build_query()` then you should _actively_ specify the value as the
third
parameter, for example:
```
http_build_query($formdata, '', '&amp;');
```
type: changed
@@ -1,8 +0,0 @@
issueNumber: MDL-73602
notes:
core:
- message: >-
Removed `qtype_random` from core.
`core\component::is_valid_plugin_name` has an additional check to ensure no-one can create a new plugin called qtype_random,
as this would conflict with the support for restoring old backups.
type: removed
@@ -1,8 +0,0 @@
issueNumber: MDL-75067
notes:
tool_behat:
- message: >-
The `behat_session_trait::ensure_element_[does_not_]exists(...)` methods
now accept optional `$container` parameter to define the parent node to
look within
type: improved
@@ -1,5 +0,0 @@
issueNumber: MDL-77894
notes:
core:
- message: Appending an exclamation mark to template names ignores theme overrides
type: improved
@@ -1,10 +0,0 @@
issueNumber: MDL-78325
notes:
core_grades:
- message: >-
In Moodle 4.2, the legacy Gradebook base widget from 4.1 has been removed and
replaced with a simpler class-based system due to a breaking change and
excessive complexity in the old pattern. The files `core/grades/basewidget.js` and
templates in `grade/templates/searchwidget/` have been deleted,
with minimal expected third-party impact.
type: removed
@@ -1,13 +0,0 @@
issueNumber: MDL-79182
notes:
core:
- message: >
The following AMD modules have been removed following the final
deprecation process. It is no longer possible or necessary to manually
register modal types. See MDL-78324 for further details.
- `core/modal_registry`
- `core/modal_factory`
type: removed
@@ -1,7 +0,0 @@
issueNumber: MDL-79574
notes:
core:
- message: >-
The `\core\persistent::get_records(...)` class method now returns
instances keyed by record ID
type: changed
@@ -1,13 +0,0 @@
issueNumber: MDL-81514
notes:
core_group:
- message: >
`groups_print_activity_menu()` and `groups_get_activity_group()` now
include an additional `$participationonly` parameter, which is true by
default. This can be set false when we want the user to be able to
select a non-participation group within an activity, for example if a
teacher wants to filter assignment submissions by non-participation
groups. It should never be used when the menu is displayed to students,
as this may allow them to participate using non-participation groups.
Non-participation groups are labeled as such.
type: improved
@@ -1,8 +0,0 @@
issueNumber: MDL-81608
notes:
mod_quiz:
- message: >-
The language strings `addpagebreak` and `removepagebreak` have been
deprecated and should no longer be used. These have been replaced by
the `addpagebreakafter` and `removepagebreakafter` language strings.
type: deprecated
@@ -1,12 +0,0 @@
issueNumber: MDL-81961
notes:
core_question:
- message: |
core_question:
- message: |
Final deprecation of `moodle-question-chooser` YUI module.
type: removed
- message: |
Final deprecation of `core_question/qbank_chooser` template.
type: removed
type: removed
-13
View File
@@ -1,13 +0,0 @@
issueNumber: MDL-81962
notes:
core:
- message: The `moodle-core-notification-confirm` YUI module has been removed after an extensive deprecation period. Please use the AMD `core/modal` module as a replacement.
type: removed
- message: |
The following feaetures of the `moodle-core-notification` YUI module have been removed after an extensive deprecation process.:
- method: `keyDelegation`
- property: `lightbox`
There is no direct replacement for these features, but they were not widely used and their removal should not cause significant issues. If you were using these features, you will need to implement your own solutions for key delegation and lightbox functionality.
type: removed
@@ -1,7 +0,0 @@
issueNumber: MDL-82284
notes:
core:
- message: >-
Legacy constructors have been removed. These relate to PHP 4 and
earlier.
type: removed
@@ -1,15 +0,0 @@
issueNumber: MDL-83902
notes:
core_badges:
- message: >-
The following classes and functions are now also available in the following new
locations. They will continue to work in their old locations:
| Old classname/function | New classname/function |
| --- | --- |
| `\badge_award_selector_base` | `\core_badges\award_selector_base` |
| `\badge_potential_users_selector` | `\core_badges\potential_award_selector` |
| `\badge_existing_users_selector` | `\core_badges\existing_award_selector` |
| `process_manual_award()` | `\core_badges\award_manager::process_manual_award()` |
| `process_manual_revoke()` | `\core_badges\award_manager::process_manual_revoke()` |
type: improved
@@ -1,7 +0,0 @@
issueNumber: MDL-84082
notes:
core_reportbuilder:
- message: >-
The text filter "Contains" and "Not contains" operators now support `*`
and `?` wildcard characters for better text content filtering
type: improved
@@ -1,30 +0,0 @@
issueNumber: MDL-84960
notes:
core:
- message: >-
Several core web services now include a new initials field in user data
structures. This change is backward-compatible and only adds an optional
field; no existing fields or field semantics have been changed.
Client applications should ensure they can handle the additional initials
field in web service responses, but clients that ignore unknown fields can
continue working without changes. The affected web services are:
- core_enrol_get_enrolled_users
- core_enrol_get_enrolled_users_with_capability
- core_enrol_get_potential_users
- core_enrol_search_users
- core_user_get_users_by_field
- core_user_get_users
- core_user_get_course_user_profiles
- core_grades_get_enrolled_users_for_selector
- core_grades_get_gradable_users
- gradereport_grader_get_users_in_report
- core_message_get_contact_requests
- core_message_get_conversation_members
- core_message_message_search_users
- core_message_get_user_contacts
- core_message_get_member_info
- core_message_get_conversation_messages
- mod_assign_list_participants
- mod_assign_get_participant
- mod_forum_get_forum_discussions
type: improved
@@ -1,9 +0,0 @@
issueNumber: MDL-85233
notes:
core_filters:
- message: >-
MimeTeX support has been removed from both `filter_tex` and
`filter_algebra`. These filters now depend on LaTeX tools (`latex`,
`dvips`, and `convert`/`dvisvgm`), and as a result, the `pathmimetex`
setting has been removed.
type: removed
@@ -1,8 +0,0 @@
issueNumber: MDL-85322
notes:
block_html:
- message: >-
Treat Dashboard (pagetype 'my-index') as trusted in web services so
get_content_for_external preserves embedded HTML (e.g. iframes) on user
Dashboard.
type: changed
@@ -1,8 +0,0 @@
issueNumber: MDL-85336
notes:
core:
- message: >-
Redis connection timeout settings for cachestores and sessions have been
split into connection timeout and read timeout to allow for finer
control. These settings now also accept floats.
type: improved
@@ -1,9 +0,0 @@
issueNumber: MDL-85405
notes:
core_course:
- message: >-
The external function `core_course_get_course_contents` now includes the
`candisplay` property for each returned module. If this is false, the
module should not be displayed on the course page (for example, for
question banks).
type: improved
@@ -1,5 +0,0 @@
issueNumber: MDL-85621
notes:
core_badges:
- message: The create_issued_badge generator now returns the issued badge object.
type: changed
@@ -1,11 +0,0 @@
issueNumber: MDL-85621
notes:
core_badges:
- message: >-
The class core_badges_assertion has been deprecated and replaced by
\core_badges\achievement_credential.
The method badges_get_default_issuer() has also been deprecated because
it is no longer needed.
The file badges/endorsement.php has been removed because it stopped being used
when MDL-84323 was integrated.
type: deprecated
@@ -1,17 +0,0 @@
issueNumber: MDL-85975
notes:
core:
- message: >
`restore_qtype_plugin::unset_excluded_fields` now returns the modified
questiondata structure,
in order to support structures that contain arrays.
If your qtype plugin overrides
`restore_qtype_plugin::remove_excluded_question_data` without
calling the parent method, you may need to modify your overridden method
to use the returned
value.
type: fixed
@@ -1,8 +0,0 @@
issueNumber: MDL-86332
notes:
core_completion:
- message: >-
The `completion_info::clear_criteria` method takes an optional
`$removetypecriteria` to determine whether to remove course type
criteria from other courses that refer to the current course
type: changed
@@ -1,26 +0,0 @@
issueNumber: MDL-86493
notes:
mod_quiz:
- message: >-
The quiz overrides cache implementation has been replaced with a faster alternative with a different API.
This should be a transparent change but any direct references will still need to be updated.
type: deprecated
- message: >
`mod_quiz_cm_info_dynamic()` now uses the new `quiz_overrides` cache via `override_manager`, performing a single cache fetch per quiz/user.
This significantly reduces cache calls on course pages with many quizzes and groups.
The new `mod_quiz:quiz_overrides` cache is keyed by `quizid_userid` using datasource `\mod_quiz\cache\quiz_overrides_cache`.
This cache returns all applicable overrides for a user in a quiz (the user override, if any, plus all group overrides for groups they belong to in the quiz's course).
New class `\mod_quiz\local\quiz_overrides_cache_manager` to interact with the cache:
- `get_overrides(int $quizid, int $userid): array`
- `purge_for_user(int $quizid, int $userid): void`
- `purge_for_users(int $quizid, array $userids): void`
- `purge_for_group(int $quizid, int $groupid): void`
- `purge_for_group_members(int $groupid, array $userids): void`
Hook callbacks in `db/hooks.php` to keep the cache in sync with group
membership changes:
- `\core_group\hook\after_group_membership_added`
- `\core_group\hook\after_group_membership_removed`
type: improved
@@ -1,12 +0,0 @@
issueNumber: MDL-86524
notes:
core_question:
- message: >-
During restore of a question_set_reference, mapping of IDs in the
filtercondition is now delegated to qbank plugins.
If your qbank plugin defines a filter condition that uses database
IDs, add an override of `restore_filtercondition()` to the `condition`
class, which checks the condition's data and replaces the IDs with
mapped values if required. See
`qbank_managecategories\category_condition` for an example.
type: improved
@@ -1,7 +0,0 @@
issueNumber: MDL-86607
notes:
mod_feedback:
- message: >-
The method `feedback_init_feedback_session()` has been deprecated, along
with all other direct access to `$SESSION` from the module
type: deprecated
@@ -1,7 +0,0 @@
issueNumber: MDL-86660
notes:
core_courseformat:
- message: >-
The `$cm` attribute in `activityoverviewbase` has been updated to public
visibility, allowing direct access to the course module instance
type: changed
@@ -1,8 +0,0 @@
issueNumber: MDL-86660
notes:
core_courseformat:
- message: >-
A new `available` attribute has been added to `activityname_exporter`
class. It allows the external API to return the activity's availability
status relative to the current user.
type: changed
@@ -1,9 +0,0 @@
issueNumber: MDL-86660
notes:
core_courseformat:
- message: >-
Two new public static methods have been added to the `overviewtable`
class:
- `is_cm_displayable`: Determines if a course module should be listed in the overview table.
- `is_cm_available`: Checks if a course module is accessible to the user (and should therefore be rendered as a link).
type: changed
@@ -1,19 +0,0 @@
issueNumber: MDL-86678
notes:
core_reportbuilder:
- message: >-
The base entity class now implements a default `initialise` method, that
will automatically call each of the following methods to load entity
report data:
* `get_available_columns()`
* `get_available_filters()`
* `get_available_conditions()`
This change allows for a lot of boilerplate to be removed from report
entity classes
type: improved
@@ -1,12 +0,0 @@
issueNumber: MDL-86699
notes:
core_reportbuilder:
- message: >-
There are two new entities intended for reports specific to course
module data, in order to provide a baseline in terms of module reporting
and API usage:
*
`core_course\reportbuilder\local\entities\{course_module,course_module_base}`
type: improved
@@ -1,7 +0,0 @@
issueNumber: MDL-86699
notes:
mod_forum:
- message: >-
The forum report entity `->get_context_joins()` method is deprecated,
replaced with `->get_course_modules_joins(...)`
type: deprecated
@@ -1,17 +0,0 @@
issueNumber: MDL-86798
notes:
core_question:
- message: >
In order to prevent re-use of question version numbers after a version
is deleted, the `nextversion` column was added to
`question_bank_entries`. This serves as a counter incremented each time
a version is created.
Do not query this field directly. Instead use
`core_question\versions::get_next_version()` to read the value, which
will initialise it based on the existing versions if it is not set yet.
By default, it will increment the version number automatically, unless
you pass `increment: false`. Because of this, it is advisable to call
it inside a transaction, that is only committed after the version number
is used in a `question_versions` record.
type: fixed
@@ -1,7 +0,0 @@
issueNumber: MDL-86798
notes:
core_question:
- message: >-
`get_next_version()` from questionlib.php is now deprecated. Use
`\core_question\versions::get_next_version()` instead.
type: deprecated
@@ -1,5 +0,0 @@
issueNumber: MDL-86832
notes:
core_block:
- message: Removed block_activity_modules from Moodle 5.2.
type: removed
@@ -1,10 +0,0 @@
issueNumber: MDL-86839
notes:
core:
- message: >
"grunt watch" now accepts a force flag. Run "grunt watch -f" or "grunt
watch --force" to prevent grunt from cancelling builds when errors
occur. This is especially useful during development, because js build
files will be built even if, for example, jslint errors are still
present in the files.
type: improved
@@ -1,8 +0,0 @@
issueNumber: MDL-86846
notes:
core:
- message: >-
The `core/drag_handle` template has been modified to use a native HTML
button for a more accessible experience and a consistent look with other
buttons on the page.
type: changed
@@ -1,7 +0,0 @@
issueNumber: MDL-86854
notes:
core_courseformat:
- message: >-
Add core_courseformat\cmactions::move_before that will allow to move a coursemodule to a position before another coursemodule.
Add core_courseformat\cmactions::move_end_section that will allow to move a coursemodule the end of a section.
type: improved
@@ -1,8 +0,0 @@
issueNumber: MDL-86854
notes:
core_course:
- message: >-
Deprecates moveto_module (core_course) in favor of
cmactions::move_before or cmactions::move_end_section
(core_courseformat\local\cmactions).
type: deprecated
@@ -1,11 +0,0 @@
issueNumber: MDL-86855
notes:
qbank_columnsortorder:
- message: >-
The Behat selector `column move handle` for the `qbank_columnsortorder` plugin has been removed.
When interacting with the column's move handle, please use the move handle's accessible name and type.
For example:
- `And I drag "Move Created by" "button" and I drop it in "Move T" "button"`
type: removed
@@ -1,9 +0,0 @@
issueNumber: MDL-86856
notes:
core_course:
- message: >-
The following methods have been deprecated and should no longer be used:
- `course_delete_module`
- `course_module_flag_for_async_deletion`
Please consider using the equivalent methods, delete and delete_async, in `core_courseformat\local\cmactions` instead.
type: deprecated
@@ -1,5 +0,0 @@
issueNumber: MDL-86856
notes:
core_courseformat:
- message: Add delete method to the core_courseformat\cmactions
type: improved
@@ -1,7 +0,0 @@
issueNumber: MDL-86857
notes:
core_courseformat:
- message: >-
Add set_groupmode method to the core_courseformat\cmactions (course
format actions)
type: improved
@@ -1,7 +0,0 @@
issueNumber: MDL-86857
notes:
core_course:
- message: >-
Deprecates set_coursemodule_groupmode in favor of
core_courseformat\cmactions::set_groupmode
type: deprecated
@@ -1,7 +0,0 @@
issueNumber: MDL-86858
notes:
core_courseformat:
- message: >-
Create a new core_courseformat\cmactions::duplicate aiming to replace
the course/lib.php version
type: improved

Some files were not shown because too many files have changed in this diff Show More