766 Commits

Author SHA1 Message Date
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
moodler
fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
moodler
3cf4fa0cea Ooops. 2005-10-31 08:35:14 +00:00
moodler
fd5d7fad8b Fixed a bug in isediting() which ignored the $user parameter. 2005-10-31 06:06:41 +00:00
defacer
b2b68362c2 I just worked with a few functions which had misleading or no PHPdoc
comments, so it was a good excuse to fix the situation a bit.
2005-10-24 17:25:29 +00:00
patrickslee
80bfd47024 Made clean_param() supports recursive cleanup of arrays 2005-10-12 01:29:34 +00:00
patrickslee
aef46c081f Fixed various bugs in add_teacher() those caused the function not populating record correctly (Merged from MOODLE_15_STABLE) 2005-10-10 21:41:21 +00:00
stronk7
3de938d705 Added one check to test that the zipfile in unzip_file() is real! 2005-10-02 18:40:13 +00:00
dhawes
c40082bff8 fixed copy/paste error in php comment tag 2005-10-02 13:52:50 +00:00
stronk7
360ceb487b Modified clone() method to work better under PHP 4. Credit goes to Julian.
Merged from MOODLE_15_STABLE
2005-09-29 16:38:26 +00:00
gustav_delius
1c349f7fa2 fix to isstudent() for student view feature, see bug 4113 2005-09-25 21:44:09 +00:00
gustav_delius
57bc53c652 Made student view work also for admins.
Also modified isstudent() function to take student view into account.
2005-09-25 17:30:51 +00:00