Commit Graph

24767 Commits

Author SHA1 Message Date
dhawes 48005861f6 Moved a function directly into block. Changed some echo statements to print. Now supports new preferredtitle field for custom feed channel titles. 2005-01-27 22:45:50 +00:00
mjollnir_ a22fd258aa Fixing a typo in metacourses in mysql (id should be int 10 not int 1). Hopefully this is the end of it :( 2005-01-27 20:41:54 +00:00
mjollnir_ 483b71581d Taking out addition of wrongly named metacourse tables for first upgrade. Those who are tracking head will have already gotten it, but those upgrading from 1.4 to 1.5 don't need to see it. 2005-01-27 20:02:30 +00:00
martinlanghoff af4e9e5fd4 Merged from MOODLE_14_STABLE - Reverting validation in current_language() due to performance concerns. 2005-01-27 07:10:41 +00:00
martinlanghoff b6c93894fb Merged from MOODLE_14_STABLE - Stronger validation of form data in user/edit, and validation of lang in current_language() -- closes SC#67 2005-01-27 03:51:33 +00:00
mjollnir_ f8688e0f37 Removing debug error_log calls in uploadlib 2005-01-27 02:30:45 +00:00
mjollnir_ e3a232138a Fix for add_to_log to stop notification of invalid call to isteacher. Some actions aren't associated with a course and therefore isteacher shouldn't get called 2005-01-27 02:29:53 +00:00
dhawes 0bae4f8c0f Moved function from blog/lib to rsslib. unhtmlentities is required to liberate some rss feed information from the clutches of encoding. 2005-01-27 01:24:33 +00:00
urs_hunkler 772e78be99 I've deleted the hard coded distance (<br />) and added CSS properties in the CSS files to define the distance between the sideblocks. 2005-01-26 15:57:00 +00:00
defacer eaba9c8510 Adding that nifty BODY id and class detection code to pages... I have the
feeling that this is the way to go, as more Moodle things will be converted
to use $PAGE in the future.
2005-01-26 15:33:50 +00:00
dhawes bb3e2d74bf final step in eliminating the type field recently removed from rss database 2005-01-26 03:31:34 +00:00
defacer 6385200609 Weren't these two mistakenly switched? Compare the results from
/index.php and /course/view.php to see what I mean.
2005-01-25 19:23:05 +00:00
defacer 6bc5558ce6 Adding some extra debug output when a specific error() occurs to help track
down a problem which has been reported in the forums (it is NOT a bug though).

THIS SHOULD BE REMOVED BEFORE 1.5 IS RELEASED!
2005-01-25 19:13:09 +00:00
moodler 538a22102b Removed some THEME stuff 2005-01-25 17:39:55 +00:00
moodler e89fb61ec5 Always include the standard style sheet in print_header!
Great idea, Shane!
2005-01-25 15:53:13 +00:00
moodler c147b8ab08 Removed $THEME from everywhere :-) 2005-01-25 13:36:57 +00:00
defacer bb8bbc7457 Giving a name to ML's baby ;-)
No, seriously, defining a suitable named constant for PARAM_LOCALURL (SC#54)
2005-01-25 13:35:14 +00:00
moodler db70c04693 Standard theme is the one to use! Everybody switch to it!! :-) 2005-01-25 13:22:18 +00:00
moodler 7bb6d80f33 IMPORTANT NEW FEATURE FOR CSS
print_header now produces a unique CSS class and id for each page,
allowing targeting of styles for any module or page.
2005-01-25 11:05:23 +00:00
martinlanghoff 76560c3175 Merged from MOODLE_14_STABLE - Tighter input validation fixes SC#54 2005-01-25 06:21:39 +00:00
martinlanghoff c048e4f933 Merged from MOODLE_14_STABLE -- pending merges of shorttag fixes and SC#10 2005-01-25 06:13:36 +00:00
martinlanghoff 7744ea12b0 Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_URL 2005-01-25 06:09:39 +00:00
moodler 48b29ba423 Moved rsslib.php from the rss directory to the lib directory with the
other libraries
2005-01-25 06:09:31 +00:00
martinlanghoff 371a2ed0e5 Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_HOST (old pending merge) 2005-01-25 06:08:06 +00:00
martinlanghoff 3f1cdd2a31 Merged from MOODLE_14_STABLE
Importing validateurlsyntax.php from http://www.canowhoopass.com/guides/regex/index.php as of 15/Dec/2004, provides
 - validateUrlSyntax()
 - validateEmailSyntax()
 - validateFtpSyntax()
2005-01-25 06:05:21 +00:00
moodler cdf74b0b67 Added magpie to MOodle library 2005-01-25 05:46:27 +00:00
martinlanghoff 758b9a4d80 Merged from MOODLE_14_STABLE - Fixing bug 2334 - where fix_coursesortorder() sometimes leaves overlapping sortorder values across categories 2005-01-25 05:27:41 +00:00
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