Commit graph

945 commits

Author SHA1 Message Date
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
446d87651b fixed my own stupid single/double quote mistake 2005-01-22 15:22:06 +00:00
martinlanghoff
e069b3e2fe Merged from MOODLE_14_STABLE - Closing SC#66 - more 2005-01-22 09:06:51 +00:00
martinlanghoff
1ad9d071c9 Merged from MOODLE_14_STABLE - Closing SC#66 2005-01-22 09:00:42 +00:00
urs_hunkler
5c0f8cab97 table ID was written behind the closing tag of the table - corrected. 2005-01-18 19:53:56 +00:00
urs_hunkler
dc140b6cc0 _ added ids for the layout table 2005-01-18 11:11:26 +00:00
urs_hunkler
daa27ce409 _ added the div framework 2005-01-18 11:08:58 +00:00
martinlanghoff
d3e6cd798a Merged from MOODLE_14_STABLE - Added an early session_write_close() to loglive.php and log.php pages 2005-01-17 05:42:27 +00:00
gustav_delius
798b70a12f If the focus is on the section that is being moved then move the focus along. Fixes bug 2026 2005-01-16 17:54:34 +00:00
gustav_delius
181b888e16 ugly hack to fix bug 1824 about wrong fullname format in log info. 2005-01-16 17:27:40 +00:00
mjollnir_
6c4e8471cd Merged from MOODLE_14_STABLE: Fixing warning about invalid argument for foreach in course/lib.php in log selector form 2005-01-13 03:56:34 +00:00
moodler
32503db1c6 FIxes for bug 2379 (merged from stable) 2005-01-13 03:02:23 +00:00
moodler
15cf5d2174 Don't show "No courses in this category" if there are sub-categories 2005-01-11 08:00:26 +00:00
moodler
e05bcf2fae 1. On category listing, don't print category count at all if it's zero anyway
2.  Cleaned up some complex code to use 'strings' instead of "parsed strings".
2005-01-11 07:56:45 +00:00
moodler
1040374833 Add categories editing even with one category 2005-01-11 07:01:04 +00:00
stronk7
41f3270dab Typo. Bug 2351.
Merged from MOODLE_14_STABLE
2005-01-08 10:49:38 +00:00
martinlanghoff
559027a76c Merged from MOODLE_14_STABLE
Fixes bug 2334 http://moodle.org/bugs/bug.php?op=show&bugid=2334

Courses will sometimes fail to be moved across categories if there are collisions in the sortorder field, due to a combined unique index.

With this fix, the 'category move' logic is aware of sortorder and will do The Right Thing(tm) putting the course at the beginning of the category: MIN(sortorder)-1 WHERE category=$destcategory->id .

Also added further cleanup patches.
2005-01-04 22:52:29 +00:00
gustav_delius
15939a2fc9 Introduced the language string 'editingteachershort' and set it to 'Editor'. Also fixed a typo. This closes bug 1949 2005-01-02 07:42:24 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
moodler
c3dd541003 More links for other non-activity modules 2004-12-28 07:26:18 +00:00
moodler
0f06e85abb Merged course listing fix from stable 2004-12-15 13:33:40 +00:00
moodler
dad3f933fb Allow groups to have enrolment keys in addition to the course enrolment key.
If a user enrols with a group key they will be added to the course and to
the group.
2004-12-14 08:12:12 +00:00
mjollnir_
bf35eb157c Small bug fix in sql in log page for site errors (infected file uploads & login errors) 2004-12-09 21:35:20 +00:00
ikawhero
9a1eb4997f Changes for XHTML and accessibility compatibility 2004-12-09 08:01:25 +00:00
ikawhero
85d25fd70d Minor change to enlarge the textarea for topic summary editing.
Was too small for summaries that included large headings or images.
2004-12-07 23:49:51 +00:00
gustav_delius
cb0d44c59f fixed warning when realuser is not set. 2004-12-07 08:33:52 +00:00
gustav_delius
a36a1759cf course.guest was not loaded from database but used in code. 2004-12-07 07:27:02 +00:00
moodler
e3f30ef2d6 Restore sessionIP when returning from loginas mode 2004-11-29 06:22:39 +00:00
moodler
861a9cfa28 Set sessionIP when logging-in as a user 2004-11-29 05:45:01 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
defacer
db019d9358 Ummm... more changes due to the renaming. 2004-11-25 17:35:25 +00:00
mjollnir_
76feee3f86 Merged from MOODLE_14_STABLE: Fix for invalid sql in postgres - don't query log table for what was in log display if log->info is not set 2004-11-23 23:27:18 +00:00
mjollnir_
8b19b04085 Bug fix for patch related to forcing searching in course/student.(html|php) if too many users, and bump to MAX_USERS_PER_PAGE to 5000 2004-11-23 00:39:29 +00:00
mjollnir_
60fdc71463 Slight change to log page so that for > 5000 courses or users we don't straight off load the huge drop down menus but instead default to whatever is normally selected, with an option for 'More' to display the full drop down for either. Also includes an Martin L patch for sql query that brought postgres to it's knees (Martin L patch is destined for MOODLE_14_STABLE as well) 2004-11-23 00:16:24 +00:00
mjollnir_
6a6f25af85 Merged from MOODLE_14_STABLE: Fix for bug #2207 - sortorder now honored in front page listing 2004-11-22 21:30:26 +00:00
mjollnir_
1a31c2b366 Merged from MOODLE_14_STABLE: Don't need to select course.* in rebuild course cache 2004-11-22 05:46:18 +00:00
mjollnir_
ed040b1f2d Merged from MOODLE_14_STABLE: Recent course/scale optimisations 2004-11-22 05:22:20 +00:00
mjollnir_
01669f1619 Merged from MOODLE_14_STABLE: Fixed another instance of getting all fields from all courses (in log selector) 2004-11-22 03:35:31 +00:00
mjollnir_
4f3fecf4a6 On enrol students to a course page, force searching if too many users to display (controlled by MAX_USERS_PER_PAGE - not previously used and bumped up to 1000 as a more reasonable limit) - trying to put 30,000 users in a drop down menu crashes some browsers 2004-11-22 01:40:18 +00:00
moodler
76ca0f31fd Merged fix for bugs 2199 and 2200 from stable 2004-11-20 17:51:04 +00:00
mjollnir_
429a24b7fc Merged from MOODLE_14_STABLE: Fixing bug # 2199 - missing some teacher roles in course/category.php 2004-11-20 10:38:01 +00:00
mjollnir_
ba87a4daf5 Merged from MOODLE_14_STABLE:
Fixes to fix_course_sortorder() and course/category.php pages. (martinlanghoff)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-160
  Minor fix: moodle would crash on high number of courses when doing course creation -- should be more scalable now

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-164
Fix a bug I have introduced in fix_course_sortorder() - v2

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-210
  Fixed nested transaction in fix_course_sortorder()

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-215
  Performance and memory usage fixes for re-sort courses function

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-268
  Major performance and correctness improvements in the functions that move courses up and down, reorder by name, and in fix_course_sortorder(). All now assume course-sortorder is unique (this is enforced at the DB)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-332
  fix_coursesortorder() bugfixes and logic simplification

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-333
  courses listing enhancements: bugfix on re-ordering, keep the right page on actions
2004-11-17 06:57:28 +00:00
mjollnir_
1ed5abc877 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-207(partial) + moodle--eduforge--1.3.3--patch-408 - added begin_sql() and commit_sql() (martinlanghoff) 2004-11-17 05:31:21 +00:00
mjollnir_
72ccca5632 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-201 - optimized calls to get_courses() to retrieve only required fields (martinlanghoff) 2004-11-17 05:05:14 +00:00
stronk7
1757627af3 Now hidden sections are hidden completely from student view if
"invisible sections" are configured in course settings.
Patch sent by Geoff Wilbert. Thanks!
See Bug 2185
(http://moodle.org/bugs/bug.php?op=show&bugid=2185)

Merged from MOODLE_14_STABLE
2004-11-16 17:30:45 +00:00
mjollnir_
ff84f65428 Confirmation for deleting course categories 2004-11-16 02:21:31 +00:00
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
skodak
b56681b0a3 typo during xhtml update 2004-10-22 20:17:01 +00:00
moodler
062369857b Merged bug 2114 fix from STABLE 2004-10-21 15:50:58 +00:00
stronk7
60bd11cfc9 Solved one annoying bug where label texts in sections != first
was being always cleared, preventing some tags to be there!

Merged from MOODLE_14_STABLE
2004-10-20 23:26:49 +00:00