11593 Commits

Author SHA1 Message Date
Petr Skoda
1d57f8622c 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.
2011-04-05 18:33:35 +02:00
Petr Skoda
773e3c5031 Merge branch 'MDL-26577_groups_api_refactor_take2' of git://github.com/nebgor/moodle 2011-04-05 10:19:16 +02:00
Aparup Banerjee
0d1e49d468 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. 2011-04-05 12:22:27 +08:00
Jonathan Harker
6e9ce8e766 MDL-22308 Update lib/bennu to latest upstream. 2011-04-05 16:00:21 +12:00
Eloy Lafuente (stronk7)
a7174151db Merge branch 'MDL-11288-course-module-cloning' of git://github.com/mudrd8mz/moodle 2011-04-04 12:35:04 +02:00
Petr Skoda
33620e1772 Merge branch 'MDL-26784-plugin-manager' of git://github.com/mudrd8mz/moodle 2011-04-04 11:55:39 +02:00
Petr Skoda
3d3ead8e35 Merge branch 'MDL-26914-lang-grand-parents' of git://github.com/mudrd8mz/moodle 2011-04-04 11:19:51 +02:00
Petr Skoda
1f67888540 Merge branch 'wip-MDL-25651' of git://github.com/jennymgray/moodle 2011-04-04 09:55:41 +02:00
Petr Skoda
7974c4ec03 Merge branch 'MDL-26542_empty_array' of git://github.com/stronk7/moodle 2011-04-04 09:49:12 +02:00
Sam Hemelryk
4632bb9668 Merge branch 'earlier_profiling' of git://github.com/stronk7/moodle 2011-04-04 11:16:33 +08:00
Jenny Gray
52d1a8043c MDL-25651 add capability check to my private files navigation link 2011-03-31 14:44:35 +01:00
David Mudrak
b9934a173a 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.
2011-03-31 13:59:05 +02:00
Tim Hunt
7a3e1f7d51 MDL-26887 Refactor file_save_draft_area_files to separate out
the file_rewrite_urls_to_pluginfile bit.
2011-03-31 12:45:31 +01:00
Tim Hunt
cd6fc47e8d MDL-26847 new method file_storage::delete_area_files_select for efficient bulk file deletion. 2011-03-31 12:45:12 +01:00
David Mudrak
fa82056328 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.
2011-03-31 13:39:05 +02:00
David Mudrak
74a4c9a9ee 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.
2011-03-31 12:21:05 +02:00
David Mudrak
15e16f0e93 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.
2011-03-31 12:20:54 +02:00
Tim Hunt
71811083ba MDL-27035 table_sql forgets to set countparams. 2011-03-30 20:25:43 +01:00
Eloy Lafuente (stronk7)
c7ce62f9c8 MDL-26542 get_in_or_equal - adding $onemptyitems + tests 2011-03-30 18:22:53 +02:00
Eloy Lafuente (stronk7)
c646dd26ea 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)
2011-03-30 18:08:38 +02:00
Petr Skoda
3b6d215b91 Merge branch 'MDL-26964-moodle_url-anchor_master' of git://github.com/mudrd8mz/moodle 2011-03-29 09:57:20 +02:00
Eloy Lafuente (stronk7)
63d6da51fe Merge branch 'w13_MDL-26913_20_sitecreated' of git://github.com/skodak/moodle 2011-03-28 19:58:49 +02:00
Eloy Lafuente (stronk7)
0a284930cf Merge branch 'w13_MDL-26966_21_urlparsing' of git://github.com/skodak/moodle 2011-03-28 19:05:07 +02:00
Petr Skoda
b2b9320570 Merge branch 'MDL-26425' of git://github.com/timhunt/moodle 2011-03-28 16:49:49 +02:00
Eloy Lafuente (stronk7)
37c2a8a035 Merge branch 'master' of git.moodle.org:/git/integration 2011-03-28 16:21:11 +02:00
Eloy Lafuente (stronk7)
a226727238 Merge branch 'w13_MDL-26990_21_missingrebuild' of git://github.com/skodak/moodle 2011-03-28 16:07:20 +02:00
Petr Skoda
ce14a7644e Merge branch 'MDL-26335' of github.com:mouneyrac/moodle 2011-03-28 15:15:23 +02:00
Eloy Lafuente (stronk7)
df8248b035 Merge branch 'MDL-26804-langlistcache_master' of git://github.com/mudrd8mz/moodle 2011-03-28 14:48:38 +02:00
Sam Hemelryk
e1a7281ab2 Merge branch 'MDL-26077_message_strip_brackets2' of git://github.com/andyjdavis/moodle 2011-03-28 15:59:25 +08:00
Tim Hunt
ba9164e575 MDL-26425 tablelib more cleanup, mostly to PHPdocs, following sam's comments. 2011-03-27 20:06:45 +01:00
Tim Hunt
76dc1e2527 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 ;-))
2011-03-27 20:06:44 +01:00
Tim Hunt
6f0d3480c7 MDL-26425 tablelib change print_initials_bar to remove duplication, and to use html_writer. 2011-03-27 20:06:44 +01:00
Tim Hunt
b08fb128c8 MDL-26425 tablelib ability for table_sql to add a class to the row based on the data. 2011-03-27 20:06:43 +01:00
Tim Hunt
abf72969a4 MDL-26425 tablelib change col_username to use html_writer and moodle_url. 2011-03-27 20:06:43 +01:00
Tim Hunt
e81eed542c 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.
2011-03-27 20:06:42 +01:00
Tim Hunt
59f392b3f0 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.
2011-03-27 20:06:42 +01:00
Tim Hunt
a49c17b424 MDL-26425 tablelib rename constructors to PHP5 __construct
and add depreacted functions with the old name so that legacy code does not break.
2011-03-27 20:05:55 +01:00
Tim Hunt
4b7079c100 MDL-26425 tablelib clean up constant definitions. 2011-03-27 19:55:10 +01:00
Tim Hunt
9683db71c9 MDL-26425 tablelib mass whitespace clean-up. 2011-03-27 19:55:10 +01:00
Petr Skoda
c4dd3bb86f MDL-26913 set timecreated in fortpage of a newly installed site 2011-03-27 18:22:11 +02:00
Petr Skoda
ce8b66c67f MDL-26881 work around the block context setting problems 2011-03-27 16:39:27 +02:00
Petr Skoda
0ae36f6638 MDL-26966 improve self URL validation 2011-03-27 12:29:36 +02:00
Petr Skoda
112d3b4962 MDL-26990 fix undefined rebuild_course_cache() regression 2011-03-26 22:49:04 +01:00
David Mudrak
a9cbd19bff 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.
2011-03-24 21:51:30 +01:00
David Mudrak
a12cd69c9e 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.
2011-03-24 14:51:39 +01:00
David Mudrak
5c6ee6ec36 MDL-26964 URL returned by moodle_url::out_omit_querystring() may contain the anchor part 2011-03-24 14:51:39 +01:00
Andrew Davis (andyjdavis)
7e98f60bfb message MDL-26077 fixed up a problem with html tags being stripped out 2011-03-24 11:30:12 +08:00
Jerome Mouneyrac
ac3e0b3c8c MDL-26335 fix capability name typo in the description of the web service function moodle_user_get_users_by_id 2011-03-23 11:35:46 +08:00
Eloy Lafuente (stronk7)
bf1a4d75e0 Merge branch 'MDL-26570' of git://github.com/samhemelryk/moodle 2011-03-21 21:34:17 +01:00
Petr Skoda
3bfb75a9ed Merge branch 'wip-MDL-26781' of git://github.com/sammarshallou/moodle 2011-03-21 19:10:15 +01:00