Commit Graph

694 Commits

Author SHA1 Message Date
moodler f07fa64418 Of $COURSE you can't redefine constants :) 2006-03-29 17:56:35 +00:00
stronk7 063716bad9 Now new lang packs won't be available until UTF-8
migration was performed. Until then, only "en" and
old lang packs will be available.

The opposite is also true: only new lang packs will be available
once the UTF-8 migration was performed.
2006-03-29 16:18:46 +00:00
moodler 00a67d879c Just removing a space 2006-03-29 15:39:21 +00:00
moodler 8a58a8e17f Starting the global COURSEID.
require_login seems to be the best place to capture this, however
I'm sure there are a few little places where it won't work.

We need to hunt these places down and fix them, because I would
like to rely on COURSEID and remove all the "global $course" hacks
that are floating around.

Probably later we need the full object $COURSE as well (to match $SITE)
2006-03-29 15:38:29 +00:00
moodler 1ae655b17c Support for $CFG->sessioncookiepath 2006-03-28 05:26:18 +00:00
stronk7 11f7b25d18 Bump! Now we support Win32 locales. B-)
Anyway some "holes" remain. See:

http://docs.moodle.org/en/Table_of_locales
2006-03-25 12:26:33 +00:00
moodler 42431d7a30 Fixed bug in make_mod_upload_directory() vecause of new lang packs 2006-03-21 16:57:32 +00:00
gustav_delius f67172b64b Moved code to delete questions and question categories to lib/questionlib.php
Also fixed bug 4949
2006-03-21 09:06:34 +00:00
moodler ffd0fbb7ac New feature: you can now reset a course simply and easily using the new
"Reset" item on the course admin menu.

This allows you to delete user data from the course without touching the
course itself.
2006-03-21 07:34:33 +00:00
moodler 952d8dc87c Speedup! get_timezone_record wasn't caching! :-) 2006-03-20 09:36:47 +00:00
stronk7 8abebd1e5b Notice killing... ;-) 2006-03-19 11:13:16 +00:00
stronk7 b212c114ce First cut of email working with any encoding. Works practically ok but
I've to check something that seems to be a bug in the build of the
subject. Sendind it to CVS to check the code under Win32 and Linux.
2006-03-18 17:48:52 +00:00
skodak 4f01826a27 removed $SESSION->encoding now replaced by current_charset() and $CFG->unicodedb; 3rd party contribs must be fixed to be utf-8 and 1.6dev compatible anyway;
going to add a notice to wiki at http://docs.moodle.org/en/UTF-8_scripts
2006-03-13 22:26:06 +00:00
skodak df1931578a password handling refactoring and added conversion of passwords to unicode 2006-03-11 11:26:36 +00:00
thepurpleblob 7277ee54ca Removed bad bad bad isset_param() function. 2006-03-10 11:11:32 +00:00
stronk7 c1f6779fac If $CFG->running_installer is set, we force to retrieve
all the strings from installer.php to allow multi-lang
installations.
2006-03-09 17:43:14 +00:00
moodler 8c5ea8d5ce Look for languages in report directories too 2006-03-09 08:27:53 +00:00
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