Petr Skoda
e49cb057a1
MDL-49828 timezones: fix typos introduced by MDL-49684
2015-04-12 12:11:10 +12: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
Dan Poltawski
a9feb0c48f
Merge branch 'MDL-49595' of https://github.com/rlorenzo/moodle
2015-03-31 14:51:43 +01:00
Dan Poltawski
c157a42a7b
Merge branch 'MDL-49547' of git://github.com/timhunt/moodle
2015-03-31 14:43:48 +01:00
Dan Poltawski
0ec875745a
Merge branch 'MDL-49645_master' of git://github.com/markn86/moodle
2015-03-31 13:28:19 +01:00
Marina Glancy
4012617fb9
MDL-47337 course: merge section options during restore
2015-03-27 08:50:49 +08:00
Mark Nelson
16dfc32633
MDL-49645 core_backup: fixed 'expirythreshold' setting not being saved
2015-03-26 16:37:58 -07:00
Rex Lorenzo
7519d366ef
MDL-49595 backup: Behat tests for importing groups/groupings
...
* Also fixed a missing required parameter for an Exception and some coding standards issues.
2015-03-26 09:04:37 -07:00
Tim Hunt
95ef9d8095
MDL-49547 question restore: avoid tag-related notices.
2015-03-26 15:31:36 +00:00
Eloy Lafuente (stronk7)
7962f73e51
MDL-49543 badges: minor tweaks
...
Fix restore to support old criteria not having descriptions.
Plus delete not-needed cast (now $params is always already array).
2015-03-25 01:37:33 +01:00
Yuliya Bozhko
fffeb03fe7
MDL-49543 badges: Add decription format and backup/restore
...
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-24 09:22:47 +13:00
Eugene Venter
96e339cc58
MDL-49356 restore: handle course completion if still not defined
...
Before this patch course completion only was restored if, appart from
other conditions... we were restoring to new course, never to existing
one.
This relaxes a bit that condition in order to be able to restore to an
existing course not having any course completion setting defined, so no
conflict will happen ever.
2015-03-17 00:34:09 +01:00
David Monllao
59aebbed70
MDL-48595 logstore: Replacing references to deprecated interfaces
2015-03-09 08:25:37 +08:00
Tim Price
91d10e7686
MDL-18177 backup: fixing PHPdocs errors
2015-02-20 11:45:23 +11:00
Tim Price
e1de40f7f7
MDL-18177 backup: adding PHPdocs blocks
2015-02-20 11:45:23 +11:00
Tim Price
d7891c83dd
MDL-18177 backup: addressing coding standards
2015-02-20 11:45:23 +11:00
Matt Sammarco
5ef6f97f47
MDL-18177 availability: Excluding group members availability info
...
If setting was not enabled when backing up, exclude the availability
information of group members.
2015-02-20 11:45:22 +11:00
Matt Sammarco
868b086c4a
MDL-18177 backup: Add backup option to include groups and groupings
2015-02-20 11:45:22 +11:00
John Okely
e7bcd2764a
MDL-44520 behat: Change behat features to use new section selectors
2015-02-06 10:34:54 +08:00
Eloy Lafuente (stronk7)
16dafa5d9f
Merge branch 'MDL-48266-master' of git://github.com/FMCorz/moodle
...
Conflicts:
version.php
2015-01-26 19:19:35 +01:00
Frederic Massart
94b8c63635
MDL-48266 backup: Fix backup strorage misconfiguration
...
Basically if the destination dir is empty then the storage
type should be set to the course backup area. This does
not affect the behaviour of the backups that lived with
misconfigured settings.
2015-01-22 17:49:26 +08:00
Ray Bon
914cad8793
MDL-48837 phpunit: Restore system default timezone
2015-01-16 12:46:26 +08:00
Russell Smith
92996836d0
MDL-41674 backup: Use a trie for grouped path detection.
2015-01-11 12:54:32 +11:00
Andrew Nicols
dd1adc419f
Merge branch 'MDL-48644_restoreLegacyLogs' of https://github.com/moodlerooms/moodle
2015-01-05 14:30:56 +08:00
Aaron Barnes
1151210154
MDL-40097 completion: Apply robust role detection to samesite restores.
2015-01-05 10:30:01 +08:00
Adrian Greeve
a43f43e2fa
MDL-40097 completion: Update of code to meet guidlines.
2015-01-05 10:14:03 +08:00
Aaron Barnes
129e786cf4
MDL-40097 completion: Make restoring grade criteria more robust
2015-01-05 10:14:03 +08:00
Mark Nielsen
362bc07063
MDL-48644 backup: Preserve log IP and time during restore
2014-12-18 11:30:28 -08:00
Dan Poltawski
d3a1c13ed8
Merge branch 'MDL-46651-master-restore-course-completion-duplicate-key' of https://github.com/Trii/moodle
2014-12-16 11:58:53 +00:00
Eloy Lafuente (stronk7)
9f6658e18c
Merge branch 'MDL-48556-master' of git://github.com/ankitagarwal/moodle
2014-12-15 17:53:27 +01:00
Joshua Johnston
7a6ca49af5
MDL-46651 Backup: Handle duplicate course completions during restore
...
Cron can cause duplicate completion records if triggered during a long
running restore process. If this is the case, replace the new record
with the record from the backup file
2014-12-11 16:00:18 -05:00
Ankit Agarwal
bd58dfbfa1
MDL-48556 backup: Use correct conditions before checking dir permissions
2014-12-10 14:33:05 +05:30
Dan Poltawski
e600e6ae50
Merge branch 'MDL-47323-enrol-plugin-backup' of https://github.com/mpetrowi/moodle
2014-12-09 22:29:37 +00:00
Mark Nelson
a76eef5bc0
MDL-30937 core_backup: use default log level when none specified
2014-12-07 21:18:13 -08:00
Eloy Lafuente (stronk7)
38ea5e0a39
MDL-21724 course: change remaining tests to new "Save and display"
2014-12-04 12:14:31 +00:00
Sam Hemelryk
7594ed1e2a
Merge branch 'MDL-40419-master-2nd' of git://github.com/FMCorz/moodle
2014-12-04 12:03:18 +00:00
Matt Petro
f61992951d
MDL-47323 backup: added enrol plugin backup structure and annotation
2014-12-02 21:46:33 -05:00
Sam Hemelryk
eb8f9f9adb
Merge branch 'MDL-42717-master' of git://github.com/ankitagarwal/moodle
2014-12-01 08:47:34 +13:00
Frederic Massart
dc8ee30eda
MDL-40419 backup: Advanced comparison when restoring blocks in course
2014-11-27 15:28:51 +08:00
Eloy Lafuente (stronk7)
d2142e7b7c
Merge branch '23538-29' of git://github.com/samhemelryk/moodle
...
Conflicts:
backup/util/ui/renderer.php
2014-11-25 17:00:06 +01:00
David Monllao
99e434f2fa
MDL-31500 backup: Warn users about front page backups
...
They should know that they can only be restored on the front
page before selecting the destination course.
2014-11-25 10:30:25 +08:00
David Monllao
d62c556110
MDL-31500 backup: Remove frontpage restore UI restrictions
2014-11-25 09:37:53 +08:00
Dan Poltawski
8030d84bbc
Merge branch 'MDL-47601_master' of https://github.com/markn86/moodle
2014-11-24 17:02:09 +00:00
Dan Poltawski
bcc4dc3eab
Merge branch 'MDL-31500_master' of git://github.com/dmonllao/moodle
...
Conflicts:
backup/util/ui/renderer.php
2014-11-24 10:55:27 +00:00
Ankit Agarwal
80a1dfe561
MDL-42717 backups: set correct backup status and add logs
...
Set a correct backup status of ERROR when we fail to copy a file to an external directory given the backup configs demand it.
Also a lot of logs are added around this area to let admins easily find the problem if backup fails because of directory permissions.
2014-11-24 10:18:56 +05:30
Sam Hemelryk
74cb9073d0
Merge branch 'MDL-35494_master' of https://github.com/markn86/moodle
2014-11-24 10:06:00 +13:00
David Monllao
03c39daad8
MDL-31500 backup: Allow front page backup/restore
...
Removes restore on front page restrictions and allows
front page modules duplication.
2014-11-21 14:55:09 +08:00
David Monllao
818262afa5
MDL-31500 backup: New unit test for front page backup/restore
2014-11-21 12:37:27 +08:00
Sam Hemelryk
c866fe44de
MDL-23538 backup: tidied up phpdocs + coding style
2014-11-19 10:04:10 +13:00
Dan Poltawski
604090397a
Merge branch 'wip-MDL-36240-master' of git://github.com/abgreeve/moodle
2014-11-17 13:30:57 +00:00