Commit graph

1740 commits

Author SHA1 Message Date
mjollnir_
5f37b628ae Update for meta courses. New table renamed from meta_course to course_meta (and upgrade script provided in mysql.php and postgres7.php) and new field in course table renamed from meta_course to metacourse. Associated changes in code. Please test me! 2005-01-25 04:33:02 +00:00
defacer
1345403a7c Renaming 4 internal-use-only class methods by prefixing an underscore.
I want to make a point that people should NOT be calling them.
2005-01-25 02:57:30 +00:00
mjollnir_
b61efafba5 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-24 22:21:28 +00:00
defacer
04280e857e Renamed set_user_sesskey() to just sesskey(). SC#74 2005-01-23 22:07:13 +00:00
defacer
9407d4563f According to the final comments in SC#65:
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.

The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
2005-01-23 21:38:01 +00:00
moodler
108adee2ff User preferences were not getting set! 2005-01-23 02:30:15 +00:00
julmis
1bed7afc2b Enhancing editor settings. 2005-01-22 10:58:25 +00:00
moodler
9ef2b3f3aa Fixed some formatting problems (not caused by my last checkin!)
- <hr> and <br> weren't being processed.
  - Now, space runs are replaced differently which makes code look better.
2005-01-22 02:40:07 +00:00
moodler
f6ad05ef44 Can now pass the image tag text to the helpbutton function. Tidied up the
emoticonhelpbutton function to use new helpbutton function.
2005-01-21 05:04:24 +00:00
ikawhero
d3dcbc2922 Added a class around helpbutton links so that enclosing <font> tags can
be removed from HTML code
2005-01-21 02:37:02 +00:00
gustav_delius
cf68266001 newer version of overlib is smaller and better. This comes straight from http://www.macridesweb.com/oltest/. 2005-01-20 21:45:58 +00:00
moodler
00666d4f25 Fixed bug 2040 relating to the last character being chopped off in the
html2text conversion.

While there I tidied up the source and fixed up a problem where the links
were being printed BEFORE the text they refer to (now they are directly after)
2005-01-19 12:12:34 +00:00
martinlanghoff
a10171eb39 Merged from MOODLE_14_STABLE. Issue a warning when overriding $CFG settings. 2005-01-18 22:59:41 +00:00
moodler
0182c65cec Fixed the problem with enrolments not sticking.
Also commented out Smarty stuff for now (for better performance in 1.5)
2005-01-18 18:28:25 +00:00
ikawhero
c7444a36a5 General removal of <nolink> tags for XHTML compatibility.
Moved from the glossary filter as the filter may not be enabled.
2005-01-18 06:57:59 +00:00
moodler
7933cc6be5 Just a little bit more reobust in the face of badly-behaved blocks 2005-01-18 06:03:26 +00:00
defacer
3cacefda86 Fix for bug 2377:
Make it more difficult for instances with invalid blockid to be added to
mdl_block_instance. This could result in warnings, although nothing more
serious than that.

Credits to Eloy and especially Dan Marsden for reporting and providing info.
2005-01-17 14:26:17 +00:00
julmis
210c6aed36 Adding Lorenze Nicola's regexpression. 2005-01-15 20:08:46 +00:00
julmis
2ce21ad961 Bug fix for Bug #2222 2005-01-15 18:50:38 +00:00
julmis
e6f4c5feb4 Fix for Bug #2387 2005-01-15 18:33:03 +00:00
gustav_delius
ee563adc91 added the utf8 languages to the list of exceptions in the function break_up_long_words(). 2005-01-14 11:53:10 +00:00
gustav_delius
b18a43275c if you use \n in single-quoted strings it will not be converted to a line break. 2005-01-13 17:53:23 +00:00
moodler
5aeaeb575f Removed valign attribute from <table> tag for XHTML compatibility 2005-01-13 07:55:24 +00:00
martinlanghoff
39f6559530 Fix bug #2334 - New unique undes in course table causes course move to fail
There were several issues in fix_coursesortorder() that were fixed. Mainly:
 - the recursive calls dropped the $safe parameter
 - we did not even try to maintain uniqueness in the sortorder field across categories

http://moodle.org/bugs/bug.php?op=show&bugid=2334
2005-01-13 02:34:45 +00:00
defacer
1a33f699b2 Merging fix for bug 2264 & improvements from MOODLE_14_STABLE 2005-01-12 11:40:46 +00:00
defacer
9f1f6dafa4 Added some COMMENTED experimental code in make_timestamp (behavior doesn't
change at all), and one more optional parameter.

Changed usergetdate() to work with gmdate() instead of gmstrftime().

Small update of the PHPdoc info for get_current_group().
2005-01-12 11:17:18 +00:00
stronk7
dc0426bd83 Take out some double-slashes (//) in paths to langfiles and
included one more file_exists() check to avoid tons of
warnings when looking for files under dataroot mainly.
2005-01-11 12:24:37 +00:00
moodler
b3a2b9dd49 SMall cleanups on print_footer, and you can now call it with "none" 2005-01-11 08:26:35 +00:00
skodak
6175411bcb typo - missing semicolon 2005-01-10 21:08:29 +00:00
moodler
2765411a34 New and upgraded sites will be given a default .htaccess file in their
dataroot directory SC#64
2005-01-10 15:26:43 +00:00
moodler
d0dc2b989c Moodle now supports language packs found under dataroot/lang (they
take priority over all other locations).

Later we can add support to download language packs from within Moodle,
and edit/manage new packs more easily.
2005-01-10 14:11:13 +00:00
martinlanghoff
27a0c5f608 Ported from MOODLE_14_STABLE. SC#62 - Prevent database values from overriding $CFG values defined in config.php -- Credits go to Petr Skoda. 2005-01-09 21:54:48 +00:00
moodler
63d288118a Split up the Javascript stuff into static and non-static.
This will reduce the size of each page somewhat.
2005-01-09 15:10:12 +00:00
moodler
13af52a6d3 When using set_user_preference on other people, don't change the preference in $USER 2005-01-06 12:50:03 +00:00
martinlanghoff
b3adf3de4e Merged from MOODLE_14_STABLE - Fixed warning in ipatlas, thanks to Jens Gammelgaard <jens.gammelgaard@optimon.dk> 2005-01-06 02:07:35 +00:00
moodler
9de39eaefb Removing the whitespace from the popup links 2005-01-05 17:40:38 +00:00
defacer
0f256abc0c Fix for bug 2336:
I accidentally removed the editing button from courses when fixing bug 2328.
Fortunately, Gustav was on the lookout.
2005-01-04 19:43:09 +00:00
defacer
edb42f0924 Fix for bug 2328:
* When configuring a block instance, "Turn editing off" button is not
  shown anymore.

* When configuring a block instance, the breadcrumbs are now better,
  providing a link to the course page. This could be done in a much
  better way if we had a comprehensive template system but it will
  suffice for now.
2005-01-02 15:20:15 +00:00
moodler
36f01e7b1b New log display stuff for message contacts 2005-01-01 08:41:13 +00:00
moodler
f66e1977bb Added parameter to print_user_picture to allow links with target windows 2005-01-01 04:22:19 +00:00
fiedorow
51b0e824d2 Fixed missing / separator 2004-12-31 15:41:23 +00:00
fiedorow
9ccdcd97ee Fix for bug #2323 - forum search problem 2004-12-31 15:23:50 +00:00
dhawes
2502395fae fixing an instance of hardcoded /admin/ as per Zbigniew Fiedorowicz's fix (in 1.4.3+?) 2004-12-30 19:10:44 +00:00
moodler
e608dddda5 Message windows now popup from any page 2004-12-30 12:54:22 +00:00
moodler
114176a25e add_to_log now always updates user->lastaccess 2004-12-28 14:59:29 +00:00
moodler
e53c030b7a Added format field for messages 2004-12-28 08:56:20 +00:00
moodler
0eacb23ccc Updated message databases with better time storage, and also some logging
for message reading and writing
2004-12-28 07:40:26 +00:00
gustav_delius
b403c32aa0 Reinstated the line in stripslashes_safe() that removes the slash that escapes a backslash. Martin removed this line in March. Why? 2004-12-27 23:40:42 +00:00
moodler
d99bab2d1d Some changes that may help on safe mode ... see bug 2093
The new directory permissions maintain group mode better,
and the manual chown is now removed to prevent safe mode
from getting upset.
2004-12-26 14:45:39 +00:00
gustav_delius
b63c0ee521 Fixes a bug with user events created by an activity module.
The old code assumed that the courseid would always be set but that is only the case for course events, not for user or group events. (See http://moodle.org/mod/forum/discuss.php?d=4466#20827 for a discussion about the meaning of the courseid field in the event table)
I also made the $courseid argument to get_coursemodule_from_instance() optional. It is not needed and in some cases it will not be know, as for example for non-course events created by activity modules.
2004-12-26 13:58:07 +00:00