Commit Graph

1777 Commits

Author SHA1 Message Date
martinlanghoff f9667a5aea [multienrol]Initial commit for multi enrolment plugin feature 2006-03-09 02:48:29 +00:00
tjhunt 09481160db Refactor course deletion code to eliminate about 70 lines of duplication. 2006-03-08 16:10:24 +00:00
skodak 038ba6aa30 change value of PARAM_RAW from 0 to 666, becasue we need to detect incorrect param types (such as PARAM_IND) and incorrect order - optional_param('xx', PARAM_INT, 0)
This might break faulty code...
2006-03-07 19:20:23 +00:00
skodak c07549b6e2 fixed coding style of unicode db detection 2006-03-06 20:30:00 +00:00
tjhunt c0b5b31a48 Addition to locallib.php to notify local code when a course is deleted. 2006-03-06 12:19:58 +00:00
skodak 96e98ea67f Fixed error in my previous commit, unknown parametery type 0. 2006-03-06 06:25:33 +00:00
ikawhero 70070c1f88 Changes to custom script code. Credit to Gordon Bateson. Bug 4827. 2006-03-06 01:45:11 +00:00
mjollnir_ 2e05b22ab6 Fixing the parse error in moodlelib! Do I get a prize for being first after sf.net came back up? ;) 2006-03-06 00:39:51 +00:00
mjollnir_ 74ffb569c6 Added a useful function in moodlelib to resolve filename collisions when moving files around. Perhaps useful for backup or importing or files/index.php 2006-03-06 00:36:06 +00:00
skodak a083b93cec First stange of parameter handling refactoring, no new features + minor bugfixes. More changes coming soon.
New code should be easier to understand, just simple switch-case. Expect some detailed documentation for module authors before UK MoodleMoot :-)
2006-03-04 18:05:41 +00:00
julmis e1ecf0a019 Adding wrapper function loadeditor. 2006-03-04 16:53:02 +00:00
skodak 1b1d34225b incorrect usage of clean_filename() replaced with clean_param($text, PARAM_SAFEDIR) 2006-03-04 12:37:29 +00:00
skodak 46b8113012 optional unicode characters and better conversion to ascii in function clean_file(); fixed textlib setup code; unicode related cleanup in config-dist.php
I am going to review the usage of clean_filename() now
2006-03-04 11:35:08 +00:00
tjhunt b97c41647c Refactor the code for deleting a course from course/delete.php to a function in moodlelib.php. 2006-03-02 11:58:43 +00:00
moodler f413e3fbee Fixed some typos 2006-03-01 14:03:56 +00:00
tjhunt 1f8ede91cd Remove references to unused globals in remove_course_contents() and remove_course_userdata(), and fix comments. 2006-03-01 12:15:57 +00:00
vyshane 96ed436f37 Bug #4849 2006-02-28 04:41:44 +00:00
vyshane 4745a69050 Fixing Bug #4849 2006-02-28 04:33:39 +00:00
mjollnir_ 0a0bcdd259 Merged from MOODLE_15_STABLE: Fixing a problem reported about self enrolment in child courses and not being able to access the parent without logging in and out again at http://moodle.org/mod/forum/post.php?reply=185699 2006-02-23 22:15:30 +00:00
ikawhero 9677eb79c5 Making custom scripts path generic so it is not forced to be in the
dataroot directory which is writable by the web server.
Path cleaned to avoid relative directory links.
2006-02-23 07:04:13 +00:00
toyomoyo 55e87e5386 added code to remove possible warnings 2006-02-10 01:26:16 +00:00
toyomoyo 2cdd87a70f fix for 4720, added code to make sure en_utf8 is searchable in dirroot as well 2006-02-10 01:21:52 +00:00
toyomoyo 7919264b84 bug fixing for 4720 2006-02-10 01:16:54 +00:00
toyomoyo 527ec51af5 fix for 4726 2006-02-09 06:41:18 +00:00
stronk7 b6b970705e Initially the get_string() function, if any string wasn't found under
one lang (or its parent), was searched from "en" or "en_utf8"
(depending of the status of the DB migration).

But "en" isn't one full lang anymore under 1.6 but one "child" of "en_utf8" and
it's completely empty so we must look for the string into his new parent too.

This should solve problems with upgraded sites using non-english languages
that were showing brackets everywhere. Now they will show the english strings
until they manually install lang packages (1.5 packs) or automatically (1.6 packs).
2006-02-07 00:08:47 +00:00
stronk7 8859e0b6ca Now "en" lang has "en_utf8" as parent so we must allow
it to look for parent strings... Only "en_utf8" remains
as root language to save us from some checks (because
it cannot have parentlaguage defined).
2006-02-06 13:45:00 +00:00
moodler 089e8937f7 Removing delDirContents because we already have remove_dir 2006-02-06 04:03:30 +00:00
mjollnir_ 510b75ae64 Merged from MOODLE_15_STABLE: Moved check_dir_exists function from backup/lib.php to moodlelib 2006-02-02 20:30:34 +00:00
moodler 0302c52fd2 adding a require_logout() function =) 2006-01-24 06:00:32 +00:00
stronk7 ca9bfcd048 New string available in langconfig.php: oldcharset 2006-01-18 16:06:09 +00:00
toyomoyo ab638383d2 bug fix for 4594 2006-01-17 04:29:33 +00:00
martinlanghoff 99a14a54e8 setnew_password_and_mail() gives users a tmp passwords and emails a notice. 2006-01-16 02:51:02 +00:00
defacer 85e0be2aaa Seems I got the only remaining instance of set_default(),
so it's time to draw the curtains.
2006-01-15 01:52:07 +00:00
stronk7 5eedb21ee1 Always search for languages in both directories, else, one could
be stroking the other.
2006-01-13 14:43:51 +00:00
mjollnir_ 1404079794 added useful function array_is_nested to moodlelib;
added choose_from_menu_nested which takes a nested array and prints
<optgroup> for first level of array and then <option> under that
2006-01-11 02:22:16 +00:00
mjollnir_ 79a1029455 Merged from MOODLE_15_STABLE: Metacourse unenrolling: fixes bug #4541 2006-01-10 01:19:44 +00:00
stronk7 2412b5ab1b Avoid one notice if the dataroot/lang dir doesn't exist. 2006-01-07 10:00:49 +00:00
stronk7 46115724f5 New current_charset() function added.
Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:04:26 +00:00
moodler d3f9f1f85d Moving some functions to setuplib.php so they are first 2006-01-05 07:08:10 +00:00
moodler 6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00
skodak c59733ef80 improved comments for parameter types (PARAM_XXX) 2005-12-30 15:54:19 +00:00
toyomoyo 33c3578684 changed get_list_of_languages, now checking *_local lang folders, also getting $string['thislanguage'] string from langconfig.php for 1.6 unicode packs 2005-12-21 02:06:25 +00:00
patrickslee 7fb0fec757 Fixed courses and subcategories in an invisible category being visible (Bug #4074)
This patch is different from the one form MOODLE_15_STABLE as it used the stored path in category data.
2005-12-13 04:05:04 +00:00
dhawes f5ecb599ec PHPDoc todo tags added to functions called out as close to EOL 2005-12-10 16:40:23 +00:00
toyomoyo a266c90455 fixes bug 4400 2005-12-02 02:26:39 +00:00
toyomoyo 8f23e33bf7 merged from stable, makes autologin guest possible at site level 2005-11-28 02:23:11 +00:00
skodak 4d7c4f7f5c Do not use set_default() and isset_param(), becasue those ugly hacks will be removed SOON!! 2005-11-15 23:32:22 +00:00
skodak 5d7a9f5669 PARAM_BOOL now detects on and off values + UNCHECKED_VARS detection; merged from MOODLE_15_STABLE 2005-11-15 23:28:10 +00:00
skodak 578dcc4019 add GLOBALS overwrite protection and improved magic_quotes_gpc hack SC#191, SC#184, SC#92; merged together with Jon's last patch from MOODLE_15_STABLE
also removed the broken unregister_globals() function
2005-11-14 22:53:44 +00:00
mjollnir_ 860cea3526 Merged from MOODLE_15_STABLE: 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:23 +00:00