moodle.git
15 years agoRecent wiki table changes have problems on PostgreSQL 7.4 MDL-6724
skodak [Sun, 1 Oct 2006 12:04:34 +0000 (12:04 +0000)]
Recent wiki table changes have problems on PostgreSQL 7.4 MDL-6724

15 years agoSome quick styles added to match manage.html MDL-6725
moodler [Sun, 1 Oct 2006 10:15:50 +0000 (10:15 +0000)]
Some quick styles added to match manage.html    MDL-6725

15 years agoFixed links to Risks documentation
moodler [Sun, 1 Oct 2006 09:59:03 +0000 (09:59 +0000)]
Fixed links to Risks documentation

15 years agoNew installation with different prefix in one database fails MDL-6614
skodak [Sun, 1 Oct 2006 09:47:20 +0000 (09:47 +0000)]
New installation with different prefix in one database fails MDL-6614

15 years agoFixed styles for user listings
moodler [Sun, 1 Oct 2006 09:33:41 +0000 (09:33 +0000)]
Fixed styles for user listings

15 years agoFIx the header too by requiring login to the course
moodler [Sun, 1 Oct 2006 09:31:49 +0000 (09:31 +0000)]
FIx the header too by requiring login to the course

15 years agoFixed a typo causing MDL-6758
moodler [Sun, 1 Oct 2006 09:26:50 +0000 (09:26 +0000)]
Fixed a typo causing MDL-6758

15 years agoAdding some serious checks to make Moodle break when there is any
moodler [Sun, 1 Oct 2006 09:16:49 +0000 (09:16 +0000)]
Adding some serious checks to make Moodle break when there is any
select, insert or update on user_students, user_teachers, user_coursecreators,
or user_admins (once roles is installed), because they should not be used
at all and we will drop them soon.

15 years agoMake the sorting of the names always by lastname, to match assign roles
moodler [Sun, 1 Oct 2006 08:48:58 +0000 (08:48 +0000)]
Make the sorting of the names always by lastname, to match assign roles

15 years agoNow table renaming is working properly on PostgreSQL
stronk7 [Sun, 1 Oct 2006 08:44:55 +0000 (08:44 +0000)]
Now table renaming is working properly on PostgreSQL
(only renaming of check constraints are pending)

15 years agoTidied up groups interface to make it a bit more intuitive
moodler [Sun, 1 Oct 2006 08:37:15 +0000 (08:37 +0000)]
Tidied up groups interface to make it a bit more intuitive

15 years agoget_role_users() can now get all the people who have any role in that context,
moodler [Sun, 1 Oct 2006 08:34:36 +0000 (08:34 +0000)]
get_role_users() can now get all the people who have any role in that context,
which is useful

15 years agoFIxes for the assign screen, to make it a lot faster and able to cope
moodler [Sun, 1 Oct 2006 08:08:26 +0000 (08:08 +0000)]
FIxes for the assign screen, to make it a lot faster and able to cope
better with very large numbers of users   MDL-6766

15 years agoFIxed some typos in get_role_users and count_role_users to do with parent contexts
moodler [Sun, 1 Oct 2006 07:02:53 +0000 (07:02 +0000)]
FIxed some typos in get_role_users and count_role_users to do with parent contexts

15 years agodo not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot...
gbateson [Sun, 1 Oct 2006 06:39:51 +0000 (06:39 +0000)]
do not join "hotpot_attempts" and "hotpot_details" tables when displaying "hotpot/index.php". This should speed display when courses have many HotPot activities, especially for students

15 years agoFIxed a debugging message
moodler [Sun, 1 Oct 2006 06:39:20 +0000 (06:39 +0000)]
FIxed a debugging message

15 years agoadd/delete calendar events when adding/updating/deleting hotpots
gbateson [Sun, 1 Oct 2006 06:36:50 +0000 (06:36 +0000)]
add/delete calendar events when adding/updating/deleting hotpots

15 years agoadded "hotpotopens" and "hotpotcloses" for calendar events
gbateson [Sun, 1 Oct 2006 06:35:54 +0000 (06:35 +0000)]
added "hotpotopens" and "hotpotcloses" for calendar events

15 years agoImprovements to the user listing, security and appearance
moodler [Sun, 1 Oct 2006 06:18:18 +0000 (06:18 +0000)]
Improvements to the user listing, security and appearance

15 years agoTrivial spelling fix up
moodler [Sun, 1 Oct 2006 05:49:41 +0000 (05:49 +0000)]
Trivial spelling fix up

15 years agoNew implementation of loginas see MDL-6626
moodler [Sun, 1 Oct 2006 05:46:55 +0000 (05:46 +0000)]
New implementation of loginas    see MDL-6626

15 years agoFixed a bug where load_user_capability() was not checking in the
moodler [Sun, 1 Oct 2006 05:27:36 +0000 (05:27 +0000)]
Fixed a bug where load_user_capability() was not checking in the
specified context when it was provided (only in the parents)

15 years agoSome tidying and also a check to make sure that the user was a
moodler [Sun, 1 Oct 2006 05:26:38 +0000 (05:26 +0000)]
Some tidying and also a check to make sure that the user was a
participant in this particular course

15 years agoFIxed a typo mod->id --> mod->cm
moodler [Sun, 1 Oct 2006 04:56:43 +0000 (04:56 +0000)]
FIxed a typo  mod->id --> mod->cm

15 years agoNow Oracle supports table renaming (both sequence and triggers
stronk7 [Sat, 30 Sep 2006 23:48:34 +0000 (23:48 +0000)]
Now Oracle supports table renaming (both sequence and triggers
are kept on sync with the new table name)

15 years agoDrop one more table if present
stronk7 [Sat, 30 Sep 2006 23:09:41 +0000 (23:09 +0000)]
Drop one more table if present

15 years agoChange slighty the style of RenameKey and RenameIndex functions.
stronk7 [Sat, 30 Sep 2006 22:59:10 +0000 (22:59 +0000)]
Change slighty the style of RenameKey and RenameIndex functions.

15 years agoInitial commit of rename_table(). Not ended!
stronk7 [Sat, 30 Sep 2006 22:40:15 +0000 (22:40 +0000)]
Initial commit of rename_table(). Not ended!

15 years agofixed Fatal error: Call to undefined function: print_recent_activity() when adding...
skodak [Sat, 30 Sep 2006 21:02:09 +0000 (21:02 +0000)]
fixed Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block MDL-6437 and  blocks block database MDL-5931

15 years agofixed missing required_login($courseid) that needs to be done to set up proper global...
skodak [Sat, 30 Sep 2006 20:46:31 +0000 (20:46 +0000)]
fixed missing required_login($courseid) that needs to be done to set up proper global $COURSE; MDL-6697   course/mod.php does not show the right navigation

15 years agoMDL-6673 duplicate capabilities in list
skodak [Sat, 30 Sep 2006 20:11:44 +0000 (20:11 +0000)]
MDL-6673   duplicate capabilities in list

15 years agoNO CODE CHANGES. Just added PHPdoc comments at the top of lesson files.
mark-nielsen [Sat, 30 Sep 2006 19:49:40 +0000 (19:49 +0000)]
NO CODE CHANGES.  Just added PHPdoc comments at the top of lesson files.

15 years agoMDL-6696 Default country doesn't display on dropdown menu
skodak [Sat, 30 Sep 2006 19:46:10 +0000 (19:46 +0000)]
MDL-6696   Default country doesn't display on dropdown menu

15 years agoAdded one more test to check the EXPERIMENTAL rename_key() function
stronk7 [Sat, 30 Sep 2006 19:45:51 +0000 (19:45 +0000)]
Added one more test to check the EXPERIMENTAL rename_key() function

15 years agoAdded rename_key()
stronk7 [Sat, 30 Sep 2006 19:44:49 +0000 (19:44 +0000)]
Added rename_key()
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!

15 years agoAdding support to rename_key()
stronk7 [Sat, 30 Sep 2006 19:44:16 +0000 (19:44 +0000)]
Adding support to rename_key()
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!

15 years agoImplemented rename_key()
stronk7 [Sat, 30 Sep 2006 19:43:16 +0000 (19:43 +0000)]
Implemented rename_key()
Note that this is one EXPERIMENTAL function and shouldn't be used
by you in production code EVER!

15 years agoBug Fix: The dependency drop-down was displaying incorrectly. Fixed up code to use...
mark-nielsen [Sat, 30 Sep 2006 19:24:22 +0000 (19:24 +0000)]
Bug Fix: The dependency drop-down was displaying incorrectly.  Fixed up code to use API to gather Lessons correctly.

15 years agoBugFix for MDL-6730: now blank lessons redirect to edit.php where the user is prompte...
mark-nielsen [Sat, 30 Sep 2006 19:00:07 +0000 (19:00 +0000)]
BugFix for MDL-6730: now blank lessons redirect to edit.php where the user is prompted by a menu of options.

15 years agoAdded rename_index()
stronk7 [Sat, 30 Sep 2006 18:24:14 +0000 (18:24 +0000)]
Added rename_index()
Adding support for index renaming. Note that MySQL doesn't support this
but this shouldn't be important at all, mainly because, under xmldb,
accesses to index-names are always done with find_index_name() and
never explicity.
Anyway, this function could be useful in the future to normalize index
names in some Health center or another similar place.

15 years agoAdding support for index renaming. Note that MySQL doesn't support this
stronk7 [Sat, 30 Sep 2006 18:23:00 +0000 (18:23 +0000)]
Adding support for index renaming. Note that MySQL doesn't support this
but this shouldn't be important at all, mainly because, under xmldb,
accesses to index-names are always done with find_index_name() and
never explicity.
Anyway, this function could be useful in the future to normalize index
names in some Health center or another similar place.

15 years agoFixed PHP 4 compatibility re MDL-6753
danstowell [Sat, 30 Sep 2006 17:46:15 +0000 (17:46 +0000)]
Fixed PHP 4 compatibility re MDL-6753

15 years agoAdded 3 more tests to check change_field_enum()
stronk7 [Sat, 30 Sep 2006 17:06:59 +0000 (17:06 +0000)]
Added 3 more tests to check change_field_enum()

15 years agoAdded new function change_field_enum()
stronk7 [Sat, 30 Sep 2006 17:06:20 +0000 (17:06 +0000)]
Added new function change_field_enum()

15 years agoAdded support to change_field_enum() across all RDBMS
stronk7 [Sat, 30 Sep 2006 17:03:17 +0000 (17:03 +0000)]
Added support to change_field_enum() across all RDBMS

15 years agoMerging fixes from MOODLE_16_STABLE
julmis [Sat, 30 Sep 2006 16:07:43 +0000 (16:07 +0000)]
Merging fixes from MOODLE_16_STABLE

15 years agoUsing the new table_exists() to initialize tests properly.
stronk7 [Sat, 30 Sep 2006 15:51:41 +0000 (15:51 +0000)]
Using the new table_exists() to initialize tests properly.

15 years agoApplying the field_exists() check to add and drop fields.
stronk7 [Sat, 30 Sep 2006 15:48:23 +0000 (15:48 +0000)]
Applying the field_exists() check to add and drop fields.

15 years agonew advanced upload assignmet type - replaces old upload type, existing data and...
skodak [Sat, 30 Sep 2006 15:41:20 +0000 (15:41 +0000)]
new advanced upload assignmet type - replaces old upload type, existing data and settings not fully compatible

15 years agoNew function field_exists() to detect if one field exists
stronk7 [Sat, 30 Sep 2006 15:35:32 +0000 (15:35 +0000)]
New function field_exists() to detect if one field exists

15 years agoAdd some checks to detect if one table exists before creating or
stronk7 [Sat, 30 Sep 2006 15:19:56 +0000 (15:19 +0000)]
Add some checks to detect if one table exists before creating or
dropping it. Part of MDL-6614

15 years agoAdding some debugging() for some controlled actions.
stronk7 [Sat, 30 Sep 2006 15:15:34 +0000 (15:15 +0000)]
Adding some debugging() for some controlled actions.

15 years agoMoving some uses of find_index_name() to index_exists()
stronk7 [Sat, 30 Sep 2006 15:00:46 +0000 (15:00 +0000)]
Moving some uses of find_index_name() to index_exists()

15 years agoFixed typo
stronk7 [Sat, 30 Sep 2006 14:59:03 +0000 (14:59 +0000)]
Fixed typo

15 years agoPrevent tables without prefix to be duplicated at install time. MDL-6614
stronk7 [Sat, 30 Sep 2006 14:36:52 +0000 (14:36 +0000)]
Prevent tables without prefix to be duplicated at install time. MDL-6614

15 years agoFixed up Preset name
moodler [Sat, 30 Sep 2006 14:13:22 +0000 (14:13 +0000)]
Fixed up Preset name

15 years agoDon't show progress bar when there's nothing worth showing
moodler [Sat, 30 Sep 2006 13:52:15 +0000 (13:52 +0000)]
Don't show progress bar when there's nothing worth showing

15 years agoInside ddllib, for consistency we call parameters table, field...
stronk7 [Sat, 30 Sep 2006 13:04:17 +0000 (13:04 +0000)]
Inside ddllib, for consistency we call parameters table, field...
(without the xmldb_ prefix)

15 years agoAdded index_exists(). One wrapper over find_index_name()
stronk7 [Sat, 30 Sep 2006 12:56:39 +0000 (12:56 +0000)]
Added index_exists(). One wrapper over find_index_name()

15 years agoOne more use of getTableName() added.
stronk7 [Sat, 30 Sep 2006 12:34:17 +0000 (12:34 +0000)]
One more use of getTableName() added.

15 years agoExtendig use of new getTableName() over all generators
stronk7 [Sat, 30 Sep 2006 12:13:07 +0000 (12:13 +0000)]
Extendig use of new getTableName() over all generators

15 years agoNew getTableName() function to get normalised table names everywhere
stronk7 [Sat, 30 Sep 2006 12:03:19 +0000 (12:03 +0000)]
New getTableName() function to get normalised table names everywhere

15 years agoAdded new function table_exists() to be used later...
stronk7 [Sat, 30 Sep 2006 12:01:33 +0000 (12:01 +0000)]
Added new function table_exists() to be used later...

15 years agoAh! forgot to interchange keys and values!
stronk7 [Sat, 30 Sep 2006 11:09:44 +0000 (11:09 +0000)]
Ah! forgot to interchange keys and values!

15 years agoExecute the index_get_name() silently to avoid a lot of
stronk7 [Sat, 30 Sep 2006 10:54:37 +0000 (10:54 +0000)]
Execute the index_get_name() silently to avoid a lot of
output in the install/upgrade process. Original db->debug
is re-set to their original status once executed.

15 years agoIFxed some notices when the block was used on sticky blocks page. MDL-6620
moodler [Sat, 30 Sep 2006 08:22:17 +0000 (08:22 +0000)]
IFxed some notices when the block was used on sticky blocks page. MDL-6620

15 years agoEnablig PHP generation of code for change_field_type()
stronk7 [Fri, 29 Sep 2006 23:12:40 +0000 (23:12 +0000)]
Enablig PHP generation of code for change_field_type()

15 years agoAdded to more tests to check float <---> char conversion
stronk7 [Fri, 29 Sep 2006 23:10:31 +0000 (23:10 +0000)]
Added to more tests to check float <---> char conversion

15 years agotowards new upload assignment - expect brand-new version tomorrow :-)
skodak [Fri, 29 Sep 2006 21:45:04 +0000 (21:45 +0000)]
towards new upload assignment - expect brand-new version tomorrow :-)

15 years agofixed parameter cleanup SC#318; merged from MOODLE_16_STABLE
skodak [Fri, 29 Sep 2006 20:54:15 +0000 (20:54 +0000)]
fixed parameter cleanup SC#318; merged from MOODLE_16_STABLE

15 years agoNow basic types of conversion (int2char, char2int, number2char, char2number)
stronk7 [Fri, 29 Sep 2006 17:49:04 +0000 (17:49 +0000)]
Now basic types of conversion (int2char, char2int, number2char, char2number)
are working properly under all RDBMS.

15 years agoChange one test a bit...
stronk7 [Fri, 29 Sep 2006 17:29:08 +0000 (17:29 +0000)]
Change one test a bit...

15 years agoFixed wrong context bug
vyshane [Fri, 29 Sep 2006 08:58:02 +0000 (08:58 +0000)]
Fixed wrong context bug

15 years agoFixed missing separator (MDL-3975).
vyshane [Fri, 29 Sep 2006 07:28:11 +0000 (07:28 +0000)]
Fixed missing separator (MDL-3975).

15 years agoMoved to scorm_1x.js.php
bobopinna [Fri, 29 Sep 2006 06:45:25 +0000 (06:45 +0000)]
Moved to scorm_1x.js.php

15 years agoNo more used
bobopinna [Fri, 29 Sep 2006 06:43:58 +0000 (06:43 +0000)]
No more used

15 years agoFixed the upgrade from 1.6.x. The role->shortname field was not being created.
moodler [Fri, 29 Sep 2006 06:43:42 +0000 (06:43 +0000)]
Fixed the upgrade from 1.6.x.   The role->shortname field was not being created.

15 years agoNew icon to support toc bug fix
bobopinna [Fri, 29 Sep 2006 06:43:36 +0000 (06:43 +0000)]
New icon to support toc bug fix

15 years agoAdded progress bar to role assignments during upgrade
moodler [Fri, 29 Sep 2006 06:41:10 +0000 (06:41 +0000)]
Added progress bar to role assignments during upgrade

15 years agoChanges no datadir error message from bad manifest to bad package
bobopinna [Fri, 29 Sep 2006 06:29:10 +0000 (06:29 +0000)]
Changes no datadir error message from bad manifest to bad package

15 years agoFixed completed status for launched Asset
bobopinna [Fri, 29 Sep 2006 06:27:47 +0000 (06:27 +0000)]
Fixed completed status for launched Asset

15 years agoAdded _ to version data element
bobopinna [Fri, 29 Sep 2006 06:26:36 +0000 (06:26 +0000)]
Added _ to version data element

15 years agoFixed a bug in toc display
bobopinna [Fri, 29 Sep 2006 06:25:56 +0000 (06:25 +0000)]
Fixed a bug in toc display

15 years agoAdded some strings
bobopinna [Fri, 29 Sep 2006 06:20:53 +0000 (06:20 +0000)]
Added some strings

15 years agoAdded a progress bar for the role assignments
moodler [Fri, 29 Sep 2006 06:19:47 +0000 (06:19 +0000)]
Added a progress bar for the role assignments

15 years agoAdd MS-SQL to installer :-)
moodler [Fri, 29 Sep 2006 06:11:47 +0000 (06:11 +0000)]
Add MS-SQL to installer :-)

15 years agofixing a redundant order by clause
toyomoyo [Fri, 29 Sep 2006 05:46:02 +0000 (05:46 +0000)]
fixing a redundant order by clause

15 years agocommentary text renamed to general feedback
toyomoyo [Fri, 29 Sep 2006 05:45:24 +0000 (05:45 +0000)]
commentary text renamed to general feedback

15 years agoHeader and footer should include $CFG->header and $CFG->footer, just in
moodler [Fri, 29 Sep 2006 05:43:48 +0000 (05:43 +0000)]
Header and footer should include $CFG->header and $CFG->footer, just in
case the chosen theme doesn't exist any more

15 years agoJust tidying up code while reading it
moodler [Fri, 29 Sep 2006 05:35:37 +0000 (05:35 +0000)]
Just tidying up code while reading it

15 years agoadded a new temp config variable to help track maint mode before and after migration...
toyomoyo [Fri, 29 Sep 2006 03:10:38 +0000 (03:10 +0000)]
added a new temp config variable to help track maint mode before and after migration MDL-6182, not fixing in stable yet due to the lack of support of unset_config function.

15 years agoSlight change to Copyright notice to link to our License page, not Gnu site
moodler [Fri, 29 Sep 2006 02:39:39 +0000 (02:39 +0000)]
Slight change to Copyright notice to link to our License page, not Gnu site

15 years agofix for MDL-5670
toyomoyo [Fri, 29 Sep 2006 02:19:27 +0000 (02:19 +0000)]
fix for MDL-5670

15 years agoMoving some tests up and down and introducing some more
stronk7 [Thu, 28 Sep 2006 23:16:29 +0000 (23:16 +0000)]
Moving some tests up and down and introducing some more
tests about changing column types. Not working yet unded mssql

15 years agoMoving some change_field_XXX() functions and introducing
stronk7 [Thu, 28 Sep 2006 23:14:52 +0000 (23:14 +0000)]
Moving some change_field_XXX() functions and introducing
change_field_type(). Seems to work everywere but under
mssql (due to some problems with default constraints).
Will see it tomorrow.

15 years agoprevent nulls to become nulls (oracle error)
stronk7 [Thu, 28 Sep 2006 23:06:04 +0000 (23:06 +0000)]
prevent nulls to become nulls (oracle error)
and defaults null to become defaults null
when temporary columns are used

15 years agoAdding two more tests (create and drop foreign keys)
stronk7 [Thu, 28 Sep 2006 22:11:06 +0000 (22:11 +0000)]
Adding two more tests (create and drop foreign keys)

15 years agoDon't rely on index names to decide if we have to drop one key
stronk7 [Thu, 28 Sep 2006 22:05:11 +0000 (22:05 +0000)]
Don't rely on index names to decide if we have to drop one key

15 years agominor adjust. keytype to drop keys is not needed anymore. now it's
stronk7 [Thu, 28 Sep 2006 21:47:36 +0000 (21:47 +0000)]
minor adjust. keytype to drop keys is not needed anymore. now it's
defined in mysql generator (the only one needing it)

15 years agoone more
koenr [Thu, 28 Sep 2006 21:32:20 +0000 (21:32 +0000)]
one more