Petr Skoda [Sun, 10 Apr 2011 11:25:47 +0000 (13:25 +0200)]
MDL-26577 fix several groups and groupings issues
The current group in verified on each page which prevents problems when group settings are changed. The default group for course level is now using correct grouping id which solves problems when activity and course are using different grouping. The grouping is now displayed in group selector if user has access to all groups.
Petr Skoda [Wed, 6 Apr 2011 12:56:45 +0000 (14:56 +0200)]
weekly release 2.1dev
Petr Skoda [Wed, 6 Apr 2011 09:26:20 +0000 (11:26 +0200)]
Merge branch 'MDL-26784-plugin-manager' of git://github.com/mudrd8mz/moodle
David Mudrak [Wed, 6 Apr 2011 09:14:52 +0000 (11:14 +0200)]
MDL-26784 Plugin manager: make sure that filter_active already exists
In case of upgrade from 1.9, the table filter_active does not exist yet.
There already was this checked at another place but it is needed to test
the table existence here as well.
Eloy Lafuente (stronk7) [Wed, 6 Apr 2011 08:58:39 +0000 (10:58 +0200)]
MDL-26425 tablelib - fix tr class typo (detected @ MDL-27034)
Petr Skoda [Wed, 6 Apr 2011 08:50:19 +0000 (10:50 +0200)]
MDL-26914 fix undefined CFG langcache property during install
Sam Hemelryk [Wed, 6 Apr 2011 08:33:47 +0000 (16:33 +0800)]
PULL-574 MDL-26185 Reverted changes due failed testing + review
Petr Skoda [Tue, 5 Apr 2011 16:33:35 +0000 (18:33 +0200)]
revert MDL-26577 added session cleaning to groups_get_activity_group() that fixes an issue with dirty session data. refactored session cleaning into one function, added caching to reduce queries.
(reverse-merged from commit
0d1e49d46838f6916f93561866fdd83beaf24a0f) This change was causing fatal errors on the course level, I am going to fix it myself.
Sam Hemelryk [Tue, 5 Apr 2011 08:52:07 +0000 (16:52 +0800)]
messaging MDL-26185 Last minute fix of bug during integration, empty user preference causing error
Petr Skoda [Tue, 5 Apr 2011 08:19:16 +0000 (10:19 +0200)]
Merge branch 'MDL-26577_groups_api_refactor_take2' of git://github.com/nebgor/moodle
Aparup Banerjee [Wed, 23 Mar 2011 09:10:48 +0000 (17:10 +0800)]
MDL-26577 added session cleaning to groups_get_activity_group() that fixes an issue with dirty session data. refactored session cleaning into one function, added caching to reduce queries.
Eloy Lafuente (stronk7) [Mon, 4 Apr 2011 21:21:49 +0000 (23:21 +0200)]
Merge branch 'wip-MDL-26560-master' of git://github.com/samhemelryk/moodle
Eloy Lafuente (stronk7) [Mon, 4 Apr 2011 19:53:17 +0000 (21:53 +0200)]
Merge branch 'wip-MDL-26858' of git://github.com/samhemelryk/moodle
Eloy Lafuente (stronk7) [Mon, 4 Apr 2011 10:35:04 +0000 (12:35 +0200)]
Merge branch 'MDL-11288-course-module-cloning' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Mon, 4 Apr 2011 10:00:30 +0000 (12:00 +0200)]
Merge branch 'master' of git.moodle.org:/git/integration
Eloy Lafuente (stronk7) [Mon, 4 Apr 2011 09:56:44 +0000 (11:56 +0200)]
Merge branch 'MDL-26931-blog-post-order_master' of git://github.com/mudrd8mz/moodle
Petr Skoda [Mon, 4 Apr 2011 09:55:39 +0000 (11:55 +0200)]
Merge branch 'MDL-26784-plugin-manager' of git://github.com/mudrd8mz/moodle
Andrew Davis (andyjdavis) [Mon, 4 Apr 2011 09:27:09 +0000 (11:27 +0200)]
gradebook MDL-20946 fixed average calculation where users have multiple gradeable roles
Petr Skoda [Mon, 4 Apr 2011 09:19:51 +0000 (11:19 +0200)]
Merge branch 'MDL-26914-lang-grand-parents' of git://github.com/mudrd8mz/moodle
Petr Skoda [Mon, 4 Apr 2011 07:55:41 +0000 (09:55 +0200)]
Merge branch 'wip-MDL-25651' of git://github.com/jennymgray/moodle
Petr Skoda [Mon, 4 Apr 2011 07:49:12 +0000 (09:49 +0200)]
Merge branch 'MDL-26542_empty_array' of git://github.com/stronk7/moodle
Sam Hemelryk [Mon, 4 Apr 2011 06:49:28 +0000 (14:49 +0800)]
enrolments MDL-26560 Fixed panel.user bug with role assignments dialogue
Sam Hemelryk [Mon, 4 Apr 2011 06:37:35 +0000 (14:37 +0800)]
enrolments MDL-26858 Added finish user enrolments button to JS dialogue
Sam Hemelryk [Mon, 4 Apr 2011 05:30:55 +0000 (13:30 +0800)]
Merge branch 'MDL-26185_ms' of git://github.com/rwijaya/moodle
Sam Hemelryk [Mon, 4 Apr 2011 05:08:37 +0000 (13:08 +0800)]
Merge branch 'MDL-27016' of git://github.com/MaryE/moodle
Sam Hemelryk [Mon, 4 Apr 2011 03:16:33 +0000 (11:16 +0800)]
Merge branch 'earlier_profiling' of git://github.com/stronk7/moodle
Rossiani Wijaya [Fri, 1 Apr 2011 08:55:37 +0000 (16:55 +0800)]
MDL-26185: simplify the logic of email message output and removing email address cache
Mary Evans [Fri, 1 Apr 2011 01:43:23 +0000 (02:43 +0100)]
Fix for MDL-27016 added min-width
Jenny Gray [Thu, 31 Mar 2011 13:44:35 +0000 (14:44 +0100)]
MDL-25651 add capability check to my private files navigation link
David Mudrak [Thu, 10 Mar 2011 14:01:54 +0000 (15:01 +0100)]
MDL-26784 Strings for the new plugin manager
The new strings file core_plugin defines names of all plugin types
supported by Moodle. Some strings have already been defined elsewhere
and we use AMOS script here to copy their translation, if it is
available.
AMOS BEGIN
CPY [settings,core],[settings,core_plugin]
CPY [status,core],[status,core_plugin]
CPY [missingfromdisk,core],[status_missing,core_plugin]
CPY [nodatabase,core_admin],[status_nodb,core_plugin]
CPY [authenticationplugins,core],[type_auth_plural,core_plugin]
CPY [block,core],[type_block,core_plugin]
CPY [blocks,core],[type_block_plural,core_plugin]
CPY [coursereport,core],[type_coursereport,core_plugin]
CPY [coursereports,core],[type_coursereport_plural,core_plugin]
CPY [filter,core],[type_filter,core_plugin]
CPY [courseformats,core],[type_format_plural,core_plugin]
CPY [activitymodule,core],[type_mod,core_plugin]
CPY [activitymodules,core],[type_mod_plural,core_plugin]
CPY [plagiarism,core_plagiarism],[type_plagiarism,core_plugin]
CPY [portfolio,core_portfolio],[type_portfolio,core_plugin]
CPY [portfolios,core_portfolio],[type_portfolio_plural,core_plugin]
CPY [questiontype,core_admin],[type_qtype,core_plugin]
CPY [questiontypes,core_admin],[type_qtype_plural,core_plugin]
CPY [repository,core_repository],[type_repository,core_plugin]
CPY [theme,core],[type_theme,core_plugin]
CPY [themes,core],[type_theme_plural,core_plugin]
CPY [uninstallplugin,core_admin],[uninstall,core_plugin]
CPY [version,core],[version,core_plugin]
CPY [assignmenttype,mod_assignment],[subplugintype_assignment,mod_assignment]
CPY [presets,mod_data],[subplugintype_datapreset_plural,mod_data]
CPY [evaluationmethod,mod_workshop],[subplugintype_workshopeval,mod_workshop]
CPY [strategy,mod_workshop],[subplugintype_workshopform,mod_workshop]
AMOS END
David Mudrak [Wed, 9 Mar 2011 23:50:18 +0000 (00:50 +0100)]
MDL-26784 Improved plugins check screen and the new plugins management screen
This patch introduces new lib/pluginlib.php library that provides
unified access meta-information about all present plugin types. The
library defines plugin_manager singleton that in turn gathers
information about all present plugins and their status. The list of
plugins can be rendered either as plugins check table or plugins control
panel.
This makes print_plugins_table() function obsolete and because it is not
expected to be called by any contrib plugin, the function is removed.
CSS for the legacy table generated by print_plugins_table() is cleaned
up.
David Mudrak [Thu, 24 Mar 2011 13:39:14 +0000 (14:39 +0100)]
MDL-11288 Added ability to duplicate module in the course
Internally, the new script modduplicate.php performs a single activity
backup and restore and then moves the newly created copy right below the
original.
David Mudrak [Tue, 29 Mar 2011 19:09:59 +0000 (21:09 +0200)]
MDL-26914 When installing a lang pack, install all the grandparents too
All places where a language pack is installed now use the new language
package installer that takes case of the parental dependencies.
David Mudrak [Fri, 25 Mar 2011 10:24:22 +0000 (11:24 +0100)]
MDL-26914 Added new language pack installer class and unit tests for it
The new class wraps some common coding patterns to install a language
pack via component_installer. Most notably it deals with the parental
dependency of the language packs.
The new class should also be the only place holding the information
about the location of language packs for the given Moodle version.
Ankit Agarwal [Thu, 31 Mar 2011 09:50:57 +0000 (11:50 +0200)]
MDL-26931 Order blog entries by the creation date
Tim Hunt [Wed, 30 Mar 2011 19:25:43 +0000 (20:25 +0100)]
MDL-27035 table_sql forgets to set countparams.
Eloy Lafuente (stronk7) [Mon, 7 Mar 2011 15:58:51 +0000 (16:58 +0100)]
MDL-26542 get_in_or_equal - adding $onemptyitems + tests
Eloy Lafuente (stronk7) [Fri, 18 Mar 2011 23:32:45 +0000 (00:32 +0100)]
MDL-26891 profiling - earlier runs
This allows profiling to be started earlier in the
setup.php execution, by configuring everything in
the config.php file. That way some interesting code
is also profiled, like DB connections, load of config records...
100% compatible with normal profiling and enabled via
special setting $CFG->earlyprofilingenabled
Example (to be put on config.php):
$CFG->earlyprofilingenabled = true;
$CFG->profilingautofrec = 3;
$CFG->profilingincluded = '/*';
$CFG->profilingallowme = true;
(to enable early profiling for 1/3 of any requests while also
allowing to use the PROFILEME PGC)
Petr Skoda [Wed, 30 Mar 2011 16:01:39 +0000 (18:01 +0200)]
sync version with stable
Petr Skoda [Wed, 30 Mar 2011 12:32:49 +0000 (14:32 +0200)]
weekly release
Petr Skoda [Tue, 29 Mar 2011 07:57:20 +0000 (09:57 +0200)]
Merge branch 'MDL-26964-moodle_url-anchor_master' of git://github.com/mudrd8mz/moodle
Helen Foster [Mon, 28 Mar 2011 15:07:55 +0000 (17:07 +0200)]
MDL-26744 enrol meta lang string improvement thanks to Ray Lawrence
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 21:33:23 +0000 (23:33 +0200)]
Merge branch 'w13_MDL-22733_21_youtubeiframe' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 20:08:15 +0000 (22:08 +0200)]
Merge branch 'w13_MDL-26909_21_mediatests' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 19:56:25 +0000 (21:56 +0200)]
Merge branch 'w13_MDL-26987_21_sclean' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 17:58:49 +0000 (19:58 +0200)]
Merge branch 'w13_MDL-26913_20_sitecreated' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 17:38:48 +0000 (19:38 +0200)]
Merge branch 'w13_MDL-26951_21_archetypes' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 17:25:03 +0000 (19:25 +0200)]
Merge branch 'w13_MDL-26991_21_legacy' of git://github.com/skodak/moodle
Petr Skoda [Sun, 27 Mar 2011 18:44:50 +0000 (20:44 +0200)]
MDL-26991 use archetypes instead of deprecated 'legacy' when defining roles in enrol plugins
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 17:05:07 +0000 (19:05 +0200)]
Merge branch 'w13_MDL-26966_21_urlparsing' of git://github.com/skodak/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 16:09:29 +0000 (18:09 +0200)]
Merge branch 'w13_MDL-26985_21_branching' of git://github.com/skodak/moodle
Petr Skoda [Mon, 28 Mar 2011 14:49:49 +0000 (16:49 +0200)]
Merge branch 'MDL-26425' of git://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 14:21:11 +0000 (16:21 +0200)]
Merge branch 'master' of git.moodle.org:/git/integration
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 14:07:20 +0000 (16:07 +0200)]
Merge branch 'w13_MDL-26990_21_missingrebuild' of git://github.com/skodak/moodle
Petr Skoda [Mon, 28 Mar 2011 13:15:23 +0000 (15:15 +0200)]
Merge branch 'MDL-26335' of github.com:mouneyrac/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 12:48:38 +0000 (14:48 +0200)]
Merge branch 'MDL-26804-langlistcache_master' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 09:48:58 +0000 (11:48 +0200)]
Merge branch 's8_MDL-26213_wiki_rewrite_file_url' of git://github.com/dongsheng/moodle
Dongsheng Cai [Mon, 28 Mar 2011 09:31:01 +0000 (17:31 +0800)]
MOD-WIKI MDL-26213
1. Rewrite the image urls in diff.php and viewdiff.php
2. Fxied image urls in search.php
3. Add modcontext variable to avoid using duplicated
get_context_instance calls
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 09:03:44 +0000 (11:03 +0200)]
Merge branch 'MDL-26932' of git://github.com/jennymgray/moodle
Eloy Lafuente (stronk7) [Mon, 28 Mar 2011 08:48:45 +0000 (10:48 +0200)]
Merge branch 'm20_MDL-26939_plagiarism_restore' of git://github.com/danmarsden/moodle
Sam Hemelryk [Mon, 28 Mar 2011 08:12:55 +0000 (16:12 +0800)]
Merge branch 's8_MDL-26916_filepicker_paging' of git://github.com/dongsheng/moodle
Sam Hemelryk [Mon, 28 Mar 2011 08:10:39 +0000 (16:10 +0800)]
Merge branch 'm20_MDL-26957_forum_overview' of git://github.com/danmarsden/moodle
Sam Hemelryk [Mon, 28 Mar 2011 08:03:15 +0000 (16:03 +0800)]
Merge branch 'MDL-26906-2' of git://github.com/epsd/moodle
Sam Hemelryk [Mon, 28 Mar 2011 07:59:25 +0000 (15:59 +0800)]
Merge branch 'MDL-26077_message_strip_brackets2' of git://github.com/andyjdavis/moodle
Sam Hemelryk [Mon, 28 Mar 2011 07:52:21 +0000 (15:52 +0800)]
Merge branch 's8_MDL-26798_dropbox_repo' of git://github.com/dongsheng/moodle
Sam Hemelryk [Mon, 28 Mar 2011 06:29:50 +0000 (14:29 +0800)]
Merge branch 'w13_MDL-26992_21_uploadtemplates' of git://github.com/skodak/moodle
Sam Hemelryk [Mon, 28 Mar 2011 06:10:44 +0000 (14:10 +0800)]
Merge branch 'w13_MDL-26989_21_enrolroles' of git://github.com/skodak/moodle
Sam Hemelryk [Mon, 28 Mar 2011 05:54:39 +0000 (13:54 +0800)]
Merge branch 'w13_MDL-26795_21_emailchange' of git://github.com/skodak/moodle
Petr Skoda [Sun, 27 Mar 2011 21:48:41 +0000 (23:48 +0200)]
MDL-26992 fix broken upload users templates
Tim Hunt [Fri, 18 Feb 2011 12:28:21 +0000 (12:28 +0000)]
MDL-26425 change all table subclasses to use parent::__construct
Tim Hunt [Wed, 16 Feb 2011 13:06:29 +0000 (13:06 +0000)]
MDL-26425 tablelib more cleanup, mostly to PHPdocs, following sam's comments.
Tim Hunt [Wed, 16 Feb 2011 12:00:30 +0000 (12:00 +0000)]
MDL-26425 tablelib use html_writer when outputting rows and headers.
This includes refactoring to extract methods like sort_icon and show_hide_link which I think makes the code easier to read.
Note also the change to make_styles_string that makes it usable with html_writer. (Perhpas we need a css_writer classe ;-))
Tim Hunt [Wed, 16 Feb 2011 11:55:12 +0000 (11:55 +0000)]
MDL-26425 tablelib change print_initials_bar to remove duplication, and to use html_writer.
Tim Hunt [Wed, 16 Feb 2011 11:47:54 +0000 (11:47 +0000)]
MDL-26425 tablelib ability for table_sql to add a class to the row based on the data.
Tim Hunt [Wed, 16 Feb 2011 11:46:48 +0000 (11:46 +0000)]
MDL-26425 tablelib change col_username to use html_writer and moodle_url.
Tim Hunt [Wed, 16 Feb 2011 11:42:33 +0000 (11:42 +0000)]
MDL-26425 tablelib better validation of the sort code, also some cleanup.
You may think that the extra validation is unnecessary, since the sort fields are already validated when the URL parameters are parsed, however that overlooks an important point. There may be other options that affect which columns are in the SQL, for example the quiz show individual question grades setting. These other options can cause a column that was in the table, and being sorted on, to disappear. Therefore, it is necessary to re-validate the sort columns when they are used, to make sure they are still present, otherwise you can get ORDER BY sql that refers to non-existant columns, which then causes DB errors.
Tim Hunt [Wed, 16 Feb 2011 11:37:40 +0000 (11:37 +0000)]
MDL-26425 tablelib clean up setup and URL handling code.
Note that this change removes ->reseturl, This was supposed to be a way to reset all the session stuff relating to a table automatically in some situations, but from using Moodle and reading the code, I don't beleive it was working. The code was horrible and not easily fixible, and has been broken for years, so I just removed it.
Tim Hunt [Wed, 16 Feb 2011 11:33:31 +0000 (11:33 +0000)]
MDL-26425 tablelib rename constructors to PHP5 __construct
and add depreacted functions with the old name so that legacy code does not break.
Tim Hunt [Wed, 16 Feb 2011 11:31:23 +0000 (11:31 +0000)]
MDL-26425 tablelib clean up constant definitions.
Tim Hunt [Wed, 16 Feb 2011 10:54:29 +0000 (10:54 +0000)]
MDL-26425 tablelib mass whitespace clean-up.
Nikhil Gupta [Sun, 27 Mar 2011 18:34:15 +0000 (20:34 +0200)]
MDL-26989 fix incorrect disabling of assignable roles
Petr Skoda [Sun, 27 Mar 2011 16:22:11 +0000 (18:22 +0200)]
MDL-26913 set timecreated in fortpage of a newly installed site
Petr Skoda [Sun, 27 Mar 2011 15:19:23 +0000 (17:19 +0200)]
MDL-26795 fix incorrect location of email change strings
AMOS BEGIN
MOV [auth_emailchangecancel,auth_email],[emailchangecancel,core_auth]
MOV [auth_emailchangepending,auth_email],[emailchangepending,core_auth]
MOV [auth_emailupdate,auth_email],[emailupdate,core_auth]
MOV [auth_emailnowexists,auth_email],[emailnowexists,core_auth]
MOV [auth_emailupdatemessage,auth_email],[emailupdatemessage,core_auth]
MOV [auth_emailupdatesuccess,auth_email],[emailupdatesuccess,core_auth]
MOV [auth_emailupdatetitle,auth_email],[emailupdatetitle,core_auth]
CPY [auth_emailnoemail,auth_email],[noemail,auth_ldap]
AMOS END
Petr Skoda [Sun, 27 Mar 2011 14:39:27 +0000 (16:39 +0200)]
MDL-26881 work around the block context setting problems
Petr Skoda [Sun, 27 Mar 2011 14:14:22 +0000 (16:14 +0200)]
MDL-26987 fix invalid DML syntax in spam cleaner tool
Petr Skoda [Sun, 27 Mar 2011 14:04:33 +0000 (16:04 +0200)]
MDL-26951 fix removing of archetype from role
Petr Skoda [Sun, 27 Mar 2011 10:29:36 +0000 (12:29 +0200)]
MDL-26966 improve self URL validation
Petr Skoda [Sat, 26 Mar 2011 22:54:45 +0000 (23:54 +0100)]
MDL-26909 fix outdated mediaplugin filter unittests
Petr Skoda [Sat, 26 Mar 2011 22:38:40 +0000 (23:38 +0100)]
MDL-22733 enable youtube iframe embedding
Petr Skoda [Sat, 26 Mar 2011 21:49:04 +0000 (22:49 +0100)]
MDL-26990 fix undefined rebuild_course_cache() regression
Petr Skoda [Sat, 26 Mar 2011 21:28:32 +0000 (22:28 +0100)]
MDL-26985 make sure admins do not upgrade to 2.1dev accidentally
We already have the new maturity warning in the upgrade page but we are not changing versions yet, we should better give admins one extra chance to go back to latest 2.0.2+ stable.
Petr Skoda [Sat, 26 Mar 2011 21:08:56 +0000 (22:08 +0100)]
MDL-26985 add 2.1 release info
We keep the $CFG->version unchanged for now so that admins that upgrade accidentally can go back to the latest stable 2.0.2+.
Petr Skoda [Sat, 26 Mar 2011 21:02:42 +0000 (22:02 +0100)]
MDL-26985 new Moodle 2.1 requirements
For now only extra PHP 5.3.2 requirement compared to 2.0.
Jenny Gray [Fri, 25 Mar 2011 11:57:41 +0000 (11:57 +0000)]
MDL-26932 full url path for toggle completion form POST
David Mudrak [Mon, 21 Mar 2011 17:33:06 +0000 (18:33 +0100)]
MDL-26804 core_string_manager::get_list_of_translations() can use a cache again
This patch reimplements the internal cache that was used to store the
list of available translations in Moodle 1.x. By default, the method
get_list_of_translations() still uses the file
moodledata/cache/languages to store the list of available translations.
The location of that file can be redefined in config.php. The internal
format of the cache file is JSON now (used to be a plain text list).
The patch also fixes a usage of the global $CFG in translation_exists()
methods where the internal property should be used instead.
David Mudrak [Thu, 24 Mar 2011 13:25:40 +0000 (14:25 +0100)]
MDL-26964 URL anchor support for single_button and single_select
If the single_button or single_select use HTTP method 'get' then the
eventual anchor part of the URL is used.
David Mudrak [Thu, 24 Mar 2011 12:30:46 +0000 (13:30 +0100)]
MDL-26964 URL returned by moodle_url::out_omit_querystring() may contain the anchor part
Dongsheng Cai [Mon, 21 Mar 2011 16:22:04 +0000 (00:22 +0800)]
MDL-26916, MDL-26917
1. Fix filepicker paging issue MDL-26916
2. Highlight view as icon button by default MDL-26917
Myles Carrick [Mon, 21 Mar 2011 16:05:02 +0000 (00:05 +0800)]
MDL-26798 encode file path in dropbox repository plugin, credits to Myles Carrick
Andrew Davis (andyjdavis) [Wed, 23 Mar 2011 03:24:04 +0000 (11:24 +0800)]
message MDL-26077 fixed up a problem with html tags being stripped out