Russell Smith
ffd94de398
MDL-55272 lib: Allow random_bytes() to return large values.
...
PHP has a recursion limit and random_bytes on PHP5.6 without openssl
will error if sent a large value. Using a loop has lower overhead than
recursion as well.
2016-08-16 12:16:45 +10:00
Andrew Nicols
0eb3ffbcec
Merge branch 'MDL-54755_moodle30' of https://github.com/StudiUM/moodle into MOODLE_30_STABLE
2016-06-28 10:01:55 +08:00
Gilles-Philippe Leblanc
a19df21939
MDL-54755 core: Incorrect redirection after password change
2016-06-27 08:22:11 -04:00
Frederic Massart
fab4c8b424
MDL-54785 files: Deprecate the support for $usepost and related
2016-06-23 12:46:38 +08:00
Frederic Massart
294c33960e
Revert "MDL-44626 files: Show the PHP max upload size instead of 'unlimited'"
...
This reverts commit 6f0768618a .
2016-06-23 12:44:40 +08:00
Frederic Massart
4d957a5373
Revert "Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle "
...
This reverts commit 016e0abfbc , reversing
changes made to 58a2f0ac40 .
2016-06-23 12:44:40 +08:00
Frederic Massart
dd12c1df33
Revert "MDL-54110 repositories: Whitespace, Typo + unit test fixes"
...
This reverts commit 7e4d43e1a2 .
2016-06-23 12:44:40 +08:00
Andrew Nicols
3945629232
MDL-54110 repositories: Whitespace, Typo + unit test fixes
2016-05-11 10:42:53 +08:00
Mark Johnson
a674b3659c
MDL-54110 repositories: Allow repositories to ignore post_max_size
...
Repositories can now override usespost() if they don't upload using POST
requests. This restores the ability of users with
moodle/course:ignorefilesizelimits to upload files of unlimited size
lost in MDL-44626.
2016-05-10 16:11:28 +01:00
Dan Poltawski
db57772b2f
Merge branch 'MDL-53012-m30' of https://github.com/sammarshallou/moodle into MOODLE_30_STABLE
2016-02-16 10:44:58 +00:00
sam marshall
4ff024c5ab
MDL-53012 Behat: Add step to run scheduled task
2016-02-15 17:34:31 +00:00
Andrew Nicols
9a5b9c76fc
MDL-44626 files: Show the PHP max upload size instead of 'unlimited'
...
Even when a user has the appropriate capability to upload any sized files,
they are still restricted to the PHP post_max_size, and upload_max_filesize
values.
Rather than showing a value of "Unlimited', we should always restrict to
this value.
2016-02-11 10:56:31 +08:00
Nadav Kavalerchik
cb61fdd961
MDL-52567 Core: remove quotation marks, for proper word count
2016-01-24 00:46:39 +02:00
John Okely
ec6f81207a
MDL-52608 core: Use property_exists in fullname
...
Credit to Dmitriy Kuzevanov for the patch.
2016-01-07 07:39:13 +00:00
Shamim Rezaie
8abf3701a6
MDL-52380 mod_forum: Non-Gregorian dates in forum advance search
...
Convert the fromdate and todate date parts to Gregorian before passing them to make_timestamp
2015-12-17 18:04:16 -06:00
Shamim Rezaie
d607b840b8
MDL-52354 select_time: Make select_time respect the set calendar type
...
The select_time method updated to display form elements in accordance
to the calendar type plugin that is in use.
2015-12-17 18:04:16 -06:00
jinhofer
bdb1cab348
MDL-51483 lib/moodlelib.php: Added conditional checks to shorten_text
2015-12-07 09:21:26 -06:00
Dan Poltawski
2adf914723
MDL-45934 backup: do not reset completion enabled flag
...
The 'completion enabled' flag does not reflect any course data, its a
course setting. Previously when doing a backup deleteting existing
course content this was forced off when it should not have been.
2015-11-18 11:56:30 +00:00
Dan Poltawski
cd644dab5b
Merge branch 'MDL-51467-master' of https://github.com/sammarshallou/moodle
2015-10-14 13:40:19 +01:00
Andrew Nicols
3648d7963a
Merge branch 'MDL-51427-master' of git://github.com/marinaglancy/moodle
2015-10-13 10:13:43 +08:00
sam marshall
fc830670a2
MDL-51467 Availability: Course reset should change restrict dates
2015-10-12 17:33:51 +01:00
Kevin Wiliarty
c85aa9d606
MDL-49189 auth: Map data to profile fields with uppercase shortnames
2015-10-03 06:58:46 -04:00
Marina Glancy
70fb46c87f
MDL-51427 user: correctly use strings for phone1 and phone2
...
Thanks to Olumuyiwa Taiwo for original patch
AMOS BEGIN
CPY [phone,core],[phone1,core]
AMOS END
2015-09-16 13:37:46 +08:00
David Monllao
366d350412
Merge branch 'MDL-50921-master' of git://github.com/ryanwyllie/moodle
2015-09-15 14:26:57 +08:00
Dan Poltawski
9e66dff06c
Merge branch 'wip-MDL-51132-master' of https://github.com/marinaglancy/moodle
2015-09-08 10:46:38 +01:00
Petr Skoda
e4ac3879c2
MDL-50860 core: improve creation of random strings
2015-09-08 01:07:37 +02:00
Marina Glancy
bec7e6dcb0
MDL-50921 message: allow popup messages from noreply user
...
Thanks Gary Harris for the patch
2015-09-07 08:11:45 +00:00
Marina Glancy
0d1e545612
MDL-51132 tags: do not use user tags for tagging courses
2015-09-05 11:21:15 +08:00
Michael Aherne
80dfcf49f5
MDL-51016 messaging: Fix email attachments on Windows
2015-08-06 12:53:17 +01:00
Dan Poltawski
b860082e13
Merge branch 'MDL-43785-master' of git://github.com/andrewnicols/moodle
2015-07-27 14:49:18 +01:00
Dan Poltawski
5dee13ee92
Merge branch 'MDL-49360-master' of git://github.com/lameze/moodle
2015-07-27 12:08:46 +01:00
Dan Poltawski
53fb02da8e
Merge branch 'MDL-50645_master' of git://github.com/dmonllao/moodle
2015-07-27 10:36:55 +01:00
Andrew Nicols
0c8699c8a9
Merge branch 'MDL-46232-master' of git://github.com/FMCorz/moodle
2015-07-27 15:53:59 +08:00
Frederic Massart
a180d06cb8
MDL-46232 user: Handle bulk delete of users without email addresses
2015-07-27 15:47:39 +08:00
Andrew Nicols
2ed6be873b
MDL-43785 lib: Improve session timeout warnings
2015-07-27 14:29:47 +08:00
Simey Lameze
dcee0b9447
MDL-49360 core_lib: add new method get_local_referer()
...
This commit also replace all usages of $_SERVER['HTTP_REFERER'] and get_referer().
2015-07-27 11:11:24 +08:00
David Monllao
592ea4b975
MDL-50645 cache: get_plugins_with_function for more than one plugintype
2015-07-20 20:22:04 +02:00
David Monllao
9effa14810
MDL-50645 cache: New plugin_functions cache
...
Improves memory usage as we don't need to include all files every time we want
to see if any plugin supports a callback.
2015-07-20 20:21:07 +02:00
sam marshall
aad5b7f1d0
MDL-49434 availability: Revert MDL-49418 (obsoleted by this change)
...
This reverts commit 51fef1de35 .
2015-07-15 11:43:05 +01:00
Petr Skoda
5c1f41f058
MDL-50688 lib: fix local url validation bug
...
Change-Id: I350bb8c9ace5cc0403f083f728c100097be7aa7e
Reviewed-on: https://review.totaralms.com/8101
Tested-by: Jenkins Automation <jenkins@totaralms.com >
Reviewed-by: Sam Hemelryk <sam.hemelryk@totaralms.com >
Reviewed-by: Alastair Munro <alastair.munro@totaralms.com >
2015-06-29 16:44:03 +02:00
Dan Poltawski
f272503420
Merge branch 'MDL-50260-remove-code-optional_param' of git://github.com/tmuras/moodle
2015-06-02 14:22:59 +01:00
Dan Poltawski
2a72614f53
Merge branch 'MDL-49787_email_attachments_symlink_fix' of https://github.com/iamandrew/moodle
2015-05-26 12:57:12 +01:00
Tomasz Muras
75aefe070b
MDL-50260 lib: remove unnecessary isset check in optional_param().
...
There is no need to do check:
if (!isset($default))
As we're guaranteed that function was called with 3 arguments (func_num_args() == 3).
2015-05-21 18:54:28 +02:00
David Mudrák
de158ec57c
MDL-50313 docs: Fix the documentation for the FEATURE_IDNUMBER constant
...
The constant is used by course/moodleform_mod.php to decide whether the
field 'ID number' (cmidnumber) should be included in the common module
settings section of the activity settings form. Activity modules that do
not use grades (such as the Label) can explicitly return false when
checking for this feature support. By default, all activity modules are
supposed to support it.
2015-05-21 16:53:00 +02:00
Andrew Nicols
43ef409276
Merge branch 'MDL-49985_master' of git://github.com/markn86/moodle
...
Conflicts:
mod/forum/post.php
2015-05-06 11:11:21 +08:00
Frederic Massart
d031c2dcb9
MDL-49401 moodlelib: PARAM_LOCALURL supports loginhttps
2015-05-05 18:31:13 +08:00
Mark Nelson
b3cb726431
MDL-49985 core_course: revert commit belonging to MDL-18309
...
This reverts commit 6601690202 .
This commit was adding the 'returnurl' param unnecessarily to the
course links in the navigation block, causing a lot of long URLs
to be created.
2015-05-05 01:09:20 -07:00
Gregory Zbitnev
6601690202
MDL-18309 Course: enrol/index.php returnurl improvement
...
This patch improves usability of enrolment page in case of course is not
enrollable. 'Continue' button now returns student to referring page instead of
main moodle page (as it used to be). To make this improvement, passing correct
returnurl parameter to enrol/index.php page was implemented for links that may
be accessible for not-enrolled students.
2015-04-10 09:32:31 +08:00
Andrew Davidson
890e164179
MDL-49787 email: Updated email attachement path check to use realpath() in order to allow for symlinked temp directories
2015-04-08 10:05:08 +01:00
Petr Skoda
d6e7a63d9a
MDL-49684 timezones: rewrite timezone support
...
This patch replaces all homegrown timezone
stuff with standard PHP date/time code.
The main change is the introduction of core_date
class that returns normalised user and server
timezones. From now on nobody should be using
$CFG->timezone or $user->timezone directly!
Other new features and fixes:
* admins are prompted for timezone during install
* editing of other users is finally fixed
* timezones are displayed in user profile
* new $this->setTimezone() in phpunit
* time locale is now automatically reset in phpunit
* timezone is now automatically reset in phpunit
* phpunit has Australia/Perth as default timezone
2015-04-06 13:53:51 +12:00