]> git.mjollnir.org Git - moodle.git/log
moodle.git
17 years agoMDL-12990 Ensure that displaying message contact list pictures doesn't take a
poltawski [Mon, 14 Jan 2008 16:59:34 +0000 (16:59 +0000)]
MDL-12990 Ensure that displaying message contact list pictures doesn't take a
dbq per contact. Could do with a rewrite, but this saves us dbqs for now
merged from MOODLE_19_STABLE

17 years agoAutomatic installer.php lang files by installer_builder (20080114)
moodler [Mon, 14 Jan 2008 03:35:31 +0000 (03:35 +0000)]
Automatic installer.php lang files by installer_builder (20080114)

17 years agoMDL-8269 - stats wasn't paying attention to run time settings as the strtotime argume...
poltawski [Sun, 13 Jan 2008 18:46:55 +0000 (18:46 +0000)]
MDL-8269 - stats wasn't paying attention to run time settings as the strtotime arguments were the wrong way round. Thanks to Mark Nielsen

17 years agomerged from 1.9 :: MDL-12564 :: added font-family to the arrow properties.
urs_hunkler [Sun, 13 Jan 2008 17:53:44 +0000 (17:53 +0000)]
merged from 1.9 :: MDL-12564 :: added font-family to the arrow properties.

17 years agoMDL-12560 - layout fixes for tag blocks
poltawski [Sun, 13 Jan 2008 16:34:55 +0000 (16:34 +0000)]
MDL-12560 - layout fixes for tag blocks
merged from MOODLE_19_STABLE

17 years agoMDL-12560 - layout fixes for tag blocks
poltawski [Sun, 13 Jan 2008 16:30:09 +0000 (16:30 +0000)]
MDL-12560 - layout fixes for tag blocks
merged from MOODLE_19_STABLE

17 years agofurther refinement..
poltawski [Sun, 13 Jan 2008 12:30:55 +0000 (12:30 +0000)]
further refinement..

17 years agoImproving wording
poltawski [Sun, 13 Jan 2008 12:28:48 +0000 (12:28 +0000)]
Improving wording

17 years agoMDL-7846 - use translatable strings for bulk messaging
poltawski [Sun, 13 Jan 2008 12:21:47 +0000 (12:21 +0000)]
MDL-7846 - use translatable strings for bulk messaging
merged from MOODLE_19_STABLE

17 years agoMDL-12943 - remove old dialogue unused language files
poltawski [Sun, 13 Jan 2008 11:46:20 +0000 (11:46 +0000)]
MDL-12943 - remove old dialogue unused language files

17 years agoMDL-12742 - remove duplicated lang files
poltawski [Sun, 13 Jan 2008 11:37:26 +0000 (11:37 +0000)]
MDL-12742 - remove duplicated lang files

17 years agowhitespace clean up, removed all indentation with tabs and trailing white space
jamiesensei [Sun, 13 Jan 2008 08:30:39 +0000 (08:30 +0000)]
whitespace clean up, removed all indentation with tabs and trailing white space

17 years agoAutomatic installer.php lang files by installer_builder (20080113)
moodler [Sun, 13 Jan 2008 03:18:55 +0000 (03:18 +0000)]
Automatic installer.php lang files by installer_builder (20080113)

17 years agoMinor changes to custom check definition. MDL-12914 ; merged from 19_STABLE
stronk7 [Sat, 12 Jan 2008 18:54:54 +0000 (18:54 +0000)]
Minor changes to custom check definition. MDL-12914 ; merged from 19_STABLE

17 years agoFunction changed to check for register_globals. MDL-12914 ; merged from 19_STABLE
stronk7 [Sat, 12 Jan 2008 18:54:30 +0000 (18:54 +0000)]
Function changed to check for register_globals. MDL-12914 ; merged from 19_STABLE

17 years agomerged from 1.9 :: MDL-11154 :: added the missing code and the config line and explan...
urs_hunkler [Sat, 12 Jan 2008 18:14:49 +0000 (18:14 +0000)]
merged from 1.9 :: MDL-11154 :: added the missing code and the config line and explanation in config.php for flexible columns.

17 years agomerged from 1.9 :: MDL-9306 :: explanation added for hooks as comma separated lists...
urs_hunkler [Sat, 12 Jan 2008 16:32:44 +0000 (16:32 +0000)]
merged from 1.9 :: MDL-9306 :: explanation added for hooks as comma separated lists in Chameleon.

17 years agomerged from 1.9 :: MDL-11486 :: added width to the adminblock
urs_hunkler [Sat, 12 Jan 2008 14:52:45 +0000 (14:52 +0000)]
merged from 1.9 :: MDL-11486 :: added width to the adminblock

17 years agomerged from 1.9 :: MDL-12910 :: changed top from 2.9em to 3.5em
urs_hunkler [Sat, 12 Jan 2008 14:06:40 +0000 (14:06 +0000)]
merged from 1.9 :: MDL-12910 :: changed top from 2.9em to 3.5em

17 years agoMDL-12695 Symantec Norton internet security pop up blocker seems to be stopping user...
jamiesensei [Sat, 12 Jan 2008 08:50:32 +0000 (08:50 +0000)]
MDL-12695 Symantec Norton internet security pop up blocker seems to be stopping user starting a quiz attempt - fixed this by using print_single_button which uses an onclick event to trigger a confirm dialogue, should work better even with popup blockers.

17 years agoMDL-12906 add an optional parameter $jsconfirmmessage parameter to print_single_button
jamiesensei [Sat, 12 Jan 2008 08:47:29 +0000 (08:47 +0000)]
MDL-12906 add an optional parameter $jsconfirmmessage parameter to print_single_button

17 years agoMDL-12914 Register globals trouble; merged from MOODLE_19_STABLE
skodak [Fri, 11 Jan 2008 23:22:50 +0000 (23:22 +0000)]
MDL-12914 Register globals trouble; merged from MOODLE_19_STABLE

17 years agoFixed copy/paste typo. MDL-11341 ;-) ; merged from 19_STABLE
stronk7 [Fri, 11 Jan 2008 17:21:53 +0000 (17:21 +0000)]
Fixed copy/paste typo. MDL-11341 ;-) ; merged from 19_STABLE

17 years agoMDL-11341 - allow users with language editing perms to access language
poltawski [Fri, 11 Jan 2008 16:27:15 +0000 (16:27 +0000)]
MDL-11341 - allow users with language editing perms to access language
editing
merged from MOODLE_19_STABLE

17 years agoMDL-11074 - incorrect test in page_generic_activity, thanks to Gordon Bateson
poltawski [Fri, 11 Jan 2008 15:44:11 +0000 (15:44 +0000)]
MDL-11074 - incorrect test in page_generic_activity, thanks to Gordon Bateson
merged from MOODLE_19_STABLE

17 years agoMDL12932 -Random Short-Answer Matching does not display correctly in Item analysis...
pichetp [Fri, 11 Jan 2008 14:24:10 +0000 (14:24 +0000)]
MDL12932 -Random Short-Answer Matching does not display correctly in Item analysis report

17 years agoMDL-12926 Discussion list shows all discussion in separate mode if user not member...
skodak [Fri, 11 Jan 2008 13:09:51 +0000 (13:09 +0000)]
MDL-12926 Discussion list shows all discussion in separate mode if user not member of any group and does not have accessallgroups; merged from MOODLE_19_STABLE

17 years agoMDL-12930 - wrong title text on search webpages button, thanks to Mitsuhiro
poltawski [Fri, 11 Jan 2008 11:59:31 +0000 (11:59 +0000)]
MDL-12930 - wrong title text on search webpages button, thanks to Mitsuhiro
Yoshida
merged from MOODLE_19_STABLE

17 years agoMDL-12400 - superfluous required_param causing problems in upload
poltawski [Fri, 11 Jan 2008 11:46:16 +0000 (11:46 +0000)]
MDL-12400 - superfluous required_param causing problems in upload
assignment user report.

17 years agomerged from 1.9 :: typo body#tag-manage table#tag-management-list, th, must be body...
urs_hunkler [Fri, 11 Jan 2008 11:36:08 +0000 (11:36 +0000)]
merged from 1.9 :: typo body#tag-manage table#tag-management-list, th, must be body#tag-manage table#tag-management-list th,

17 years agoFixed intermixed quickgrading and quickfeedback help strings
nicolasconnault [Fri, 11 Jan 2008 10:03:32 +0000 (10:03 +0000)]
Fixed intermixed quickgrading and quickfeedback help strings

17 years agomerged from 1.9 :: MDL-12221 :: removed the "nocoursepage" hack, which was an attempt...
urs_hunkler [Fri, 11 Jan 2008 09:29:53 +0000 (09:29 +0000)]
merged from 1.9 :: MDL-12221 :: removed the "nocoursepage" hack, which was an attempt to find out if a page has a layout-table. I developed this hack because Martin said, that he does not see any chance to implement a layout-table check. This hack followed several exception hacks because Moodel pages are inconsistently created. All those exceptions I could delete too.

Now I added a JavaScript layout-table check which works great.

17 years agoAutomatic installer.php lang files by installer_builder (20080111)
moodler [Fri, 11 Jan 2008 03:23:17 +0000 (03:23 +0000)]
Automatic installer.php lang files by installer_builder (20080111)

17 years agoAdding custom check to test MDL-12914 ; merged from 19_STABLE
stronk7 [Fri, 11 Jan 2008 00:05:55 +0000 (00:05 +0000)]
Adding custom check to test MDL-12914 ; merged from 19_STABLE

17 years agoAdded new library to store all core custom checks to be performed
stronk7 [Thu, 10 Jan 2008 23:46:28 +0000 (23:46 +0000)]
Added new library to store all core custom checks to be performed
by environmental stuff. MDL-12914

17 years agoMDL-12921 Using visible groups in Q&A Forums student can't reply to discussions for...
skodak [Thu, 10 Jan 2008 23:13:30 +0000 (23:13 +0000)]
MDL-12921 Using visible groups in Q&A Forums student can't reply to discussions for All participants (including groups code cleanup); merged from MOODLE_19_STABLE

17 years agoMDL-12915 - fixed require of removed file
poltawski [Thu, 10 Jan 2008 16:11:10 +0000 (16:11 +0000)]
MDL-12915 - fixed require of removed file
merged from MOODLE_19_STABLE

17 years agoMDL-6216 print_category_info no longer counts invisible courses if the user does...
jmg324 [Thu, 10 Jan 2008 15:43:24 +0000 (15:43 +0000)]
MDL-6216 print_category_info no longer counts invisible courses if the user does't have permission to see them.

17 years agoMDL-12913 - Error messages when doing an XML grade import are not very helpful, inclu...
tjhunt [Thu, 10 Jan 2008 15:38:48 +0000 (15:38 +0000)]
MDL-12913 - Error messages when doing an XML grade import are not very helpful, include the idnumber that is causing the problem in the error message.

17 years agoMDL-12911 fixed permission checks; merged from MOODLE_18_STABLE
skodak [Thu, 10 Jan 2008 15:09:58 +0000 (15:09 +0000)]
MDL-12911 fixed permission checks; merged from MOODLE_18_STABLE

17 years agoFix notice when you try to import an empty XML file.
tjhunt [Thu, 10 Jan 2008 14:17:37 +0000 (14:17 +0000)]
Fix notice when you try to import an empty XML file.

17 years agoMDL-12890 - differing values for number of choice responses link to what is
poltawski [Thu, 10 Jan 2008 14:08:19 +0000 (14:08 +0000)]
MDL-12890 - differing values for number of choice responses link to what is
displayed
merged from MOODLE_19_STABLE

17 years agoMDL-12373 - More instances of links to the participants list being shown in the navig...
tjhunt [Thu, 10 Jan 2008 10:58:16 +0000 (10:58 +0000)]
MDL-12373 - More instances of links to the participants list being shown in the navigation bar to people without the necessary capability.

I have not copied and pasted the same code into lots of different places. That sucks. We really need to refactor this into a function that builds the navigation up to, and including the user's name. However, I don't have time now. A list of the places touched by this bug (MDL-12373) will at least give a complete list of places that such a refactoring would have to touch.

17 years agoMDL-12221 - use theme variables so it doesn't break on my setup ;)
poltawski [Thu, 10 Jan 2008 10:43:35 +0000 (10:43 +0000)]
MDL-12221 - use theme variables so it doesn't break on my setup ;)
merged from MOODLE_19_STABLE

17 years agosearch cron.php is included from search block, the config.php was already included...
skodak [Thu, 10 Jan 2008 10:01:06 +0000 (10:01 +0000)]
search cron.php is included from search block, the config.php was already included in admin/cron.php

17 years agoaltered require statement for config.
jmg324 [Thu, 10 Jan 2008 09:47:29 +0000 (09:47 +0000)]
altered require statement for config.

Not sure why, but the referential file path was causing cron to fail because config couldn't be found when running from scheduled cron (running in browser was fine!

It looks tidier anyway to have both require's done the same way, so now both user $dirroot to locate files required and this works with scheduled cron.

17 years agoMerged parenting fix from 1.9 MDL-12221
moodler [Thu, 10 Jan 2008 06:10:50 +0000 (06:10 +0000)]
Merged parenting fix from 1.9  MDL-12221

17 years agoMerge MDL-12904 (db support for auth plugins) from 1.9 and 1.8
moodler [Thu, 10 Jan 2008 03:51:56 +0000 (03:51 +0000)]
Merge MDL-12904 (db support for auth plugins) from 1.9 and 1.8

17 years agoAutomatic installer.php lang files by installer_builder (20080110)
moodler [Thu, 10 Jan 2008 03:20:21 +0000 (03:20 +0000)]
Automatic installer.php lang files by installer_builder (20080110)

17 years agoMDL-12894 Fixing language string mess (language packs containing \n) & moved them...
mjollnir_ [Wed, 9 Jan 2008 23:15:44 +0000 (23:15 +0000)]
MDL-12894 Fixing language string mess (language packs containing \n) & moved them to the controllers,
also fixed a few typos and a || instead of && bug.  This all relates to the CLI installer.

17 years agoMDL-12822 removing some unused grade functions (obsoleted by format grade function...
skodak [Wed, 9 Jan 2008 18:19:42 +0000 (18:19 +0000)]
MDL-12822 removing some unused grade functions (obsoleted by format grade function), renaming PUBLIC API to activity communication API and adding new querylib.php with useful functions (requested by other devs); merged from MOODLE_19_STABLE

17 years agoMDL-12373 - If you can see your user profile, but don't have moodle/course:viewpartic...
tjhunt [Wed, 9 Jan 2008 17:23:47 +0000 (17:23 +0000)]
MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - and there were also instances in blog.

17 years agoMDL-12373 - If you can see your user profile, but don't have moodle/course:viewpartic...
tjhunt [Wed, 9 Jan 2008 16:46:21 +0000 (16:46 +0000)]
MDL-12373 - If you can see your user profile, but don't have moodle/course:viewparticipants, you get a link in the nav bar that takes you to an error message - this was repeated in other parts of the user profile that I had not noticed when I fixed this before.

17 years agoMerged from 1.9 and checked :: MDL-12221 :: I added changes to weblib and the forum...
urs_hunkler [Wed, 9 Jan 2008 15:52:08 +0000 (15:52 +0000)]
Merged from 1.9 and checked :: MDL-12221 :: I added changes to weblib and the forum and glossary view pages, the custom_corners and standard theme to get those pages working.

In the view pages I changed the container function call to a simple "echo 'div ...'" to avoid the custom_corners container overhead and page oddity.

In weblib I added "clearfix" handling to the function "print_box_start($classes ...". "clearfix" is handed over to the containing divs. This is a hack, but I didn't know how to handle it without rewriting too much areas.

17 years agoMDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report
poltawski [Wed, 9 Jan 2008 12:57:44 +0000 (12:57 +0000)]
MDL-12889 - bad capability check [thanks Tim!] in assignment recent activity report
merged from MOODLE_19_STABLE

17 years agoMDL-12888 - remove require to form no longer used
poltawski [Wed, 9 Jan 2008 11:04:39 +0000 (11:04 +0000)]
MDL-12888 - remove require to form no longer used
merged from MOODLE_19_STABLE

17 years agoMDL-12888 - remove require to form no longer used
poltawski [Wed, 9 Jan 2008 10:57:45 +0000 (10:57 +0000)]
MDL-12888 - remove require to form no longer used
merged from MOODLE_19_STABLE

17 years agoMDL-10886 - Category edit: use 'save changes', enable cancel button to allow us
poltawski [Wed, 9 Jan 2008 10:49:59 +0000 (10:49 +0000)]
MDL-10886 - Category edit: use 'save changes', enable cancel button to allow us
to get back from where we came from & refine where we are returned to when cancelled.
merged from MOODLE_19_STABLE

17 years agoMDL-12461 - wrong urls for message related log entries
poltawski [Wed, 9 Jan 2008 10:12:31 +0000 (10:12 +0000)]
MDL-12461 - wrong urls for message related log entries
merged from MOODLE_19_STABLE

17 years agoFixed missing string MDL-12801
moodler [Wed, 9 Jan 2008 07:36:29 +0000 (07:36 +0000)]
Fixed missing string   MDL-12801

17 years agoMerged MDL-12801 from MOODLE_18_STABLE (improve roles terminology for system)
moodler [Wed, 9 Jan 2008 06:50:42 +0000 (06:50 +0000)]
Merged MDL-12801 from MOODLE_18_STABLE (improve roles terminology for system)

17 years agoSmall documentation fix.
scyrma [Wed, 9 Jan 2008 04:10:02 +0000 (04:10 +0000)]
Small documentation fix.

17 years agoMDL-11674
ericmerrill [Wed, 9 Jan 2008 02:13:52 +0000 (02:13 +0000)]
MDL-11674

Changing back an issue that could cause dataloss.

17 years agoMerged from MOODLE_19_STABLE: MDL-12884 web installer should set the depth of the...
mjollnir_ [Tue, 8 Jan 2008 23:27:45 +0000 (23:27 +0000)]
Merged from MOODLE_19_STABLE: MDL-12884 web installer should set the depth of the miscellaneous course category to 1 too (discussion in moodle hq skype chat with Petr)

17 years agoMDL-12884: cli installer should create the context for the Miscellaneous course category
mjollnir_ [Tue, 8 Jan 2008 23:23:19 +0000 (23:23 +0000)]
MDL-12884: cli installer should create the context for the Miscellaneous course category

17 years agomod/chat:chat_cron() - IS NOT NULL is better - MDL-11674
martinlanghoff [Tue, 8 Jan 2008 22:36:17 +0000 (22:36 +0000)]
mod/chat:chat_cron() - IS NOT NULL is better - MDL-11674

17 years agoMDL-12840 - gradebook CSV import was failing due to newlines with nothing
poltawski [Tue, 8 Jan 2008 22:25:07 +0000 (22:25 +0000)]
MDL-12840 - gradebook CSV import was failing due to newlines with nothing
on them
merged from MOODLE_19_STABLE

17 years agomod/chat:chat_cron() delete stale chat messages with a single query, fast, and portab...
martinlanghoff [Tue, 8 Jan 2008 20:58:24 +0000 (20:58 +0000)]
mod/chat:chat_cron() delete stale chat messages with a single query, fast, and portable too! MDL-11674

17 years agoMDL-12882 - we were caching empty records which caused clone warnings
poltawski [Tue, 8 Jan 2008 20:20:36 +0000 (20:20 +0000)]
MDL-12882 - we were caching empty records which caused clone warnings
merged from MOODLE_19_STABLE

17 years agoMDL-12771 - change multianswer quetsion type HTML to more closely match that of other...
tjhunt [Tue, 8 Jan 2008 18:37:46 +0000 (18:37 +0000)]
MDL-12771 - change multianswer quetsion type HTML to more closely match that of other question types, in order to fix a layout glitch in Moodle 1.9.

17 years agoMDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer...
tjhunt [Tue, 8 Jan 2008 18:29:20 +0000 (18:29 +0000)]
MDL-12785 - Partially correct tick icon not displayed for MULTICHOICE, single answer questions. Fix thanks to Joseph Rézeau. Merged from MOODLE_18_STABLE.

17 years agomerged from 1.9 :: MDL-12881 :: added class names "username" and "password" for bette...
urs_hunkler [Tue, 8 Jan 2008 18:07:47 +0000 (18:07 +0000)]
merged from 1.9 :: MDL-12881 :: added class names "username" and "password" for better login form handling.

17 years agoMDL-12876 Moved accesshide text further off the screen as it was sometimes visible
sam_marshall [Tue, 8 Jan 2008 17:30:50 +0000 (17:30 +0000)]
MDL-12876 Moved accesshide text further off the screen as it was sometimes visible

17 years agoMDL-12464 - refine further so that glossary can't refer to instance from
poltawski [Tue, 8 Jan 2008 16:47:19 +0000 (16:47 +0000)]
MDL-12464 - refine further so that glossary can't refer to instance from
another course (and cause breakage)

17 years agoMDL-12875 - Hidden courses not in category list not visible to teachers on those...
tjhunt [Tue, 8 Jan 2008 15:17:02 +0000 (15:17 +0000)]
MDL-12875 - Hidden courses not in category list not visible to teachers on those courses in the list of courses in a category.

17 years agoPut back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabilt...
tjhunt [Tue, 8 Jan 2008 15:04:00 +0000 (15:04 +0000)]
Put back DEBUG_DEVELOPER sanity check in has_capability, that makes sure the capabiltiy you are asking about actually exists. I know it takes an extra DB query, but it is DEBUG_DEVELOPER only, and it is worth its weight in gold, because otherwise you get really subtle bugs that take forever to diagnose. I know, I have just been banging my head against the wall for an hour.

17 years agoMDL-9372 - only show RSS options in database module when RSS is enabled
poltawski [Tue, 8 Jan 2008 13:40:32 +0000 (13:40 +0000)]
MDL-9372 - only show RSS options in database module when RSS is enabled
merged from MOODLE_19_STABLE

17 years agoMDL-10813 - Course requests not respecting course request category.
poltawski [Tue, 8 Jan 2008 12:51:07 +0000 (12:51 +0000)]
MDL-10813 - Course requests not respecting course request category.

Also made the course request category more robust, as breakage would
incur if $CFG->defaultrequestcategory didn't exist as a category.
merged from MOODLE_19_STABLE

17 years agoMDL-12873 - show an add course button when editing at the top level (which
poltawski [Tue, 8 Jan 2008 12:00:11 +0000 (12:00 +0000)]
MDL-12873 - show an add course button when editing at the top level (which
is the default view when you click 'Add/Edit Courses')

merged from MOODLE_19_STABLE

17 years agoMDL-11830 width applied to input fields only, that should solve the incorrect size...
skodak [Tue, 8 Jan 2008 07:33:48 +0000 (07:33 +0000)]
MDL-11830 width applied to input fields only, that should solve the incorrect size of button; merged from MOODLE_19_STABLE

17 years agoMDL-12869 fixed minor security problem in installer - reported by hanno; merged from...
skodak [Tue, 8 Jan 2008 07:16:18 +0000 (07:16 +0000)]
MDL-12869 fixed minor security problem in installer - reported by hanno; merged from MOODLE_19_STABLE

17 years agoMisplaced variable definition
nicolasconnault [Tue, 8 Jan 2008 06:07:56 +0000 (06:07 +0000)]
Misplaced variable definition

17 years agodmllib:rcache_set()/rcache_get() - use clone() function which we can support in PHP4...
martinlanghoff [Tue, 8 Jan 2008 04:13:32 +0000 (04:13 +0000)]
dmllib:rcache_set()/rcache_get() - use clone() function which we can support in PHP4 - MDL-12827

17 years agoAutomatic installer.php lang files by installer_builder (20080108)
moodler [Tue, 8 Jan 2008 03:21:40 +0000 (03:21 +0000)]
Automatic installer.php lang files by installer_builder (20080108)

17 years agoMDL-12858 fix print_error() usage.
iarenaza [Tue, 8 Jan 2008 00:13:49 +0000 (00:13 +0000)]
MDL-12858 fix print_error() usage.

print_error()'s third parameter is the URL we jump to (defaults to
$CFG->wwwroot if not set) when we click the 'Continue' button, not the message
string parameter object.

Forward ported from MOODLE_18_STABLE

17 years agoMDL-12853 - fix typo
poltawski [Mon, 7 Jan 2008 21:40:25 +0000 (21:40 +0000)]
MDL-12853 - fix typo

17 years agoMDL-12866 - fix missing 'is' typo
poltawski [Mon, 7 Jan 2008 21:30:18 +0000 (21:30 +0000)]
MDL-12866 - fix missing 'is' typo

17 years agoMDL-12856 - previous commit was breaking moodle installs after
poltawski [Mon, 7 Jan 2008 20:57:44 +0000 (20:57 +0000)]
MDL-12856 - previous commit was breaking moodle installs after
redeclaring method. Remove the duplicate function.

merged from MOODLE_19_STABLE

17 years agoMDL-12859 - add some whitespace so translation layout doesn't get messed
poltawski [Mon, 7 Jan 2008 20:32:16 +0000 (20:32 +0000)]
MDL-12859 - add some whitespace so translation layout doesn't get messed
up; merged from MOODLE_19_STABLE

17 years agoUse the locale to sort the list of activites everywhere. This matches a change a...
tjhunt [Mon, 7 Jan 2008 16:46:35 +0000 (16:46 +0000)]
Use the locale to sort the list of activites everywhere. This matches a change a made in one place before christmas. If you don't do this, the PHP sorts by ASCII order, so mixed case names, or special characters, get sorted wrongly. Merged from MOODLE_19_STABLE.

17 years agoMDL-6529 - strip slashes when displaying category added success messsage
poltawski [Mon, 7 Jan 2008 12:21:06 +0000 (12:21 +0000)]
MDL-6529 - strip slashes when displaying category added success messsage

merged from MOODLE_19_STABLE

17 years agoAutomatic installer.php lang files by installer_builder (20080107)
moodler [Mon, 7 Jan 2008 03:19:52 +0000 (03:19 +0000)]
Automatic installer.php lang files by installer_builder (20080107)

17 years agoNew feature: Command line installer. Credit: Dilan Anurudda.
mjollnir_ [Mon, 7 Jan 2008 01:54:28 +0000 (01:54 +0000)]
New feature: Command line installer.  Credit: Dilan Anurudda.

This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.

17 years agoAdding method to allow printing of the enrolment key form code when using PayPal.
ikawhero [Mon, 7 Jan 2008 01:02:45 +0000 (01:02 +0000)]
Adding method to allow printing of the enrolment key form code when using PayPal.
Merged from MOODLE_19_STABLE

17 years agoaccesslib: get_users_by_capability() now excludes doanything'ers properly
martinlanghoff [Sun, 6 Jan 2008 23:26:19 +0000 (23:26 +0000)]
accesslib: get_users_by_capability() now excludes doanything'ers properly

With some subselect-outer-join poison-pill magic, when the we don't
want doanything users, we remove the roles that would grant such
dubious status.

Just a flick of the SQL muscle, actually.

17 years agoaccesslib: get_users_by_capability() fix subselect with ra.hidden
martinlanghoff [Sun, 6 Jan 2008 23:26:08 +0000 (23:26 +0000)]
accesslib: get_users_by_capability() fix subselect with ra.hidden

 MDL-12452

17 years agolib/deprecatedlib: use sort_by_roleassignment_authority() to sort RAs
martinlanghoff [Sun, 6 Jan 2008 23:25:51 +0000 (23:25 +0000)]
lib/deprecatedlib: use sort_by_roleassignment_authority() to sort RAs

After calling get_users_by_capability(), use
sort_by_roleassignment_authority() to mimic what older versions of
Moodle did.

Affects: get_teacher(), get_course_teachers()

    MDL-12452

17 years agoaccesslib: Introducing sort_by_roleassignment_authority()
martinlanghoff [Sun, 6 Jan 2008 23:25:37 +0000 (23:25 +0000)]
accesslib: Introducing sort_by_roleassignment_authority()

This will help us bridge the gap from olden-style order-by
user_teachers.id. From the phpdoc...

 Will re-sort a $users results array (from get_users_by_capability(), usually)
 based on a sorting policy. This is to support the odd practice of
 sorting teachers by 'authority', where authority was "lowest id of the role
 assignment".

 Will execute 1 database query. Only suitable for small numbers of users, as it
 uses an u.id IN() clause.

 Notes about the sorting criteria.

 As a default, we cannot rely on role.sortorder because then
 admins/coursecreators will always win. That is why the sane
 rule "is locality matters most", with sortorder as 2nd
 consideration.

 If you want role.sortorder, use the 'sortorder' policy, and
 name explicitly what roles you want to cover. It's probably
 a good idea to see what roles have the capabilities you want
 (array_diff() them against roiles that have 'can-do-anything'
 to weed out admin-ish roles. Or fetch a list of roles from
 variables like $CFG->coursemanagers .

MDL-12452

17 years agolib/deprecatedlib: enrol/manual: Fix calls to get_users_by_capability() to avoid ra
martinlanghoff [Sun, 6 Jan 2008 23:25:26 +0000 (23:25 +0000)]
lib/deprecatedlib: enrol/manual: Fix calls to get_users_by_capability() to avoid ra

get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

Fixes:
 get_teacher() - though the results will be poor, as we cannot provide
                 role.sortorder reliably
 (used mainly by mod/workshop)
 get_course_teachers() - which seems broken for a lot of situations as
                 its default parameters still refer to old tables.

MDL-12452

17 years agoenrol/manual: Fix calls to get_users_by_capability() to avoid ra
martinlanghoff [Sun, 6 Jan 2008 23:25:15 +0000 (23:25 +0000)]
enrol/manual: Fix calls to get_users_by_capability() to avoid ra

get_users_by_capability() can no longer refer to properties of role
assignments or roles, as the capability aggregate is indirect.

MDL-12452