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
Petr Skoda
94ff0f08f3
Merge branch 'MDL-26922' of git://github.com/stronk7/moodle
2011-03-21 19:02:16 +01:00
Eloy Lafuente (stronk7)
f80de2f25c
MDL-26922 dml - avoid PHP_INT_MAX overflow on limit queries
2011-03-21 18:49:08 +01:00
Petr Skoda
25bd4d9a37
Merge branch 'MDL-26847_amended' of git://github.com/timhunt/moodle
2011-03-21 18:10:35 +01:00
Eloy Lafuente (stronk7)
4386e0d101
Merge branch 'master' of git.moodle.org:/git/integration
2011-03-21 18:04:25 +01:00
Petr Skoda
61baea5d22
Merge branch 'MDL-26903' of git://github.com/samhemelryk/moodle
2011-03-21 18:00:07 +01:00
Eloy Lafuente (stronk7)
1f95c9a4af
Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle
2011-03-21 17:55:40 +01:00
Petr Skoda
cd278cd454
MDL-26842 fix invalid parameter mix discovered by the new test
2011-03-21 17:19:36 +01:00
Eloy Lafuente (stronk7)
1997d9dc1d
Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle
2011-03-21 16:38:19 +01:00
Petr Skoda
4c1638c10f
MDL-26842 fix o_ prefix regression
2011-03-21 16:32:09 +01:00
Eloy Lafuente (stronk7)
c0c232ab63
Merge branch 'master' of git.moodle.org:/git/integration
2011-03-21 16:31:27 +01:00
Tim Hunt
af7b3673d7
MDL-26847 new method file_storage::delete_area_files_select for efficient bulk file deletion.
2011-03-21 15:21:02 +00:00
Petr Skoda
10464ffb33
Merge branch 'MDL-26887' of git://github.com/timhunt/moodle
2011-03-21 15:39:31 +01:00
Eloy Lafuente (stronk7)
7a5852c857
Merge branch 'w12_MDL-26844_20_limittests' of git://github.com/skodak/moodle
2011-03-21 15:35:17 +01:00
Petr Skoda
d96b0a969b
Merge branch 'wip-MDL-26822'
2011-03-21 14:03:33 +01:00
Petr Skoda
ae8c1f3d06
MDL-26822 fix whitespace
2011-03-21 14:02:50 +01:00
Sam Hemelryk
8196e3c08d
Merge branch 'MDL-26557' of git://git.luns.net.uk/moodle
2011-03-21 17:32:06 +08:00
Sam Hemelryk
beb81f4947
Merged PULL-496/MDL-26859 and fixed incorrect defines
2011-03-21 17:13:20 +08:00
Sam Hemelryk
909fc3ff2e
Merge branch 'w12_MDL-26726_20_typocat' of git://github.com/skodak/moodle
2011-03-21 14:16:51 +08:00
Sam Hemelryk
e460480080
Merge branch 'w12_MDL-26825_20_cancelform' of git://github.com/skodak/moodle
2011-03-21 14:10:44 +08:00
Sam Hemelryk
37fff87398
Merge branch 'w12_MDL-26803_20_userupload' of git://github.com/skodak/moodle
2011-03-21 12:28:45 +08:00
Sam Hemelryk
b89d39bfcb
Merge branch 'w12_MDL-26842_20_ociparams' of git://github.com/skodak/moodle
2011-03-21 12:22:23 +08:00
Sam Hemelryk
c78262b542
navigation MDL-26903 Fixed regression to navigation ajax after CM changes
2011-03-21 10:22:28 +08:00
Petr Skoda
8f6c1f3488
MDL-26859 improve blog access control and prevent unnecessary blog includes
2011-03-20 13:34:51 +01:00