818 Commits

Author SHA1 Message Date
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
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
moodler
169fc66a15 Merged small speed improvements from STABLE 2004-10-18 06:00:26 +00:00
moodler
08684ee95c Merged PHP5 fix for bug 2073 from STABLE 2004-10-15 09:54:04 +00:00
stronk7
5b224948aa course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
stronk7
967cd1164b course/unenrol.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 19:08:01 +00:00
stronk7
5bcfaece3d course/teacher.php is using sesskey.
(POST form too)

Merged from MOODLE_14_STABLE
2004-10-09 19:02:35 +00:00
stronk7
a60399f0fe course/student.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 18:51:12 +00:00
stronk7
92604dbcf8 course/scales.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 18:33:44 +00:00
stronk7
8b92f5bb7d course/mod.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 17:23:28 +00:00
stronk7
d99ceac20f course/index.php is using sesskey.
Merged form MOODLE_14_STABLE
2004-10-09 13:22:59 +00:00
stronk7
d84e70d049 course/groups.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 12:03:55 +00:00
stronk7
740c44428e course/group.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 11:47:36 +00:00
stronk7
bb207404e8 course/grades.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-09 11:37:48 +00:00
stronk7
676eb5e8df course/editsection.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-08 18:32:27 +00:00
stronk7
38c8de9591 course/edit.php is using sesskey.
Merged from MOODLE_14_STABLE
2004-10-08 18:13:05 +00:00
stronk7
56fcb59a51 course/delete.php is using sesskey
Merged from MOODLE_14_STABLE
2004-10-08 17:58:38 +00:00
stronk7
abf45bedf0 course/category.php is using sesskey
Merged from MOODLE_14_STABLE
2004-10-08 16:52:20 +00:00
moodler
6ac98433a7 Changes for XHTML compatibility 2004-10-08 14:43:35 +00:00
moodler
bcb5605ee1 Minor change for XHTML compatibility 2004-10-08 13:39:46 +00:00
moodler
de78568276 Changes for XHTML compatibility 2004-10-08 13:34:48 +00:00
moodler
44ff1b8791 Changes for XHTML compatibility 2004-10-07 09:18:33 +00:00
moodler
1ddd15afbd Changes for XHTML compatibility 2004-10-07 08:46:30 +00:00
stronk7
1066e0dc62 Changed some conditions against the $USER variable
to work fine under PHP5.

Bug 2053
(http://moodle.org/bugs/bug.php?op=show&bugid=2053)

Merged from MOODLE_14_STABLE
2004-10-06 16:52:24 +00:00
moodler
4f91674c4b Merged visibility fix from stable 2004-10-02 15:29:49 +00:00
moodler
7228f7963f Merged sesskey stuff from stable 2004-10-01 15:06:39 +00:00
moodler
e0d346ff91 Added optional_param and required_param just to get it on the plate 2004-10-01 12:09:52 +00:00
gustav_delius
dfc12289a3 after removing empty line at top of section the editing icon was now a bit cramped in, so added an empty line below it but only if editing is on. 2004-09-30 18:56:08 +00:00