Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
a1c99c02
Commit
a1c99c02
authored
Mar 19, 2019
by
Eloy Lafuente
Browse files
Merge branch 'MDL-64990_master' of
git://github.com/markn86/moodle
parents
cd8e0cf2
8ca99a92
Changes
3
Hide whitespace changes
Inline
Side-by-side
admin/tool/usertours/classes/manager.php
View file @
a1c99c02
...
...
@@ -796,8 +796,7 @@ class manager {
// the format filename => version. The version value needs to
// be increased if the tour has been updated.
$shippedtours
=
[
'36_dashboard.json'
=>
3
,
'36_messaging.json'
=>
3
,
'36_dashboard.json'
=>
3
];
// These are tours that we used to ship but don't ship any longer.
...
...
@@ -807,6 +806,12 @@ class manager {
'boost_course_view.json'
=>
1
,
];
if
(
$CFG
->
messaging
)
{
$shippedtours
[
'36_messaging.json'
]
=
3
;
}
else
{
$unshippedtours
[
'36_messaging.json'
]
=
3
;
}
$existingtourrecords
=
$DB
->
get_recordset
(
'tool_usertours_tours'
);
// Get all of the existing shipped tours and check if they need to be
...
...
admin/tool/usertours/db/upgrade.php
View file @
a1c99c02
...
...
@@ -54,5 +54,12 @@ function xmldb_tool_usertours_upgrade($oldversion) {
// Automatically generated Moodle v3.6.0 release upgrade line.
// Put any upgrade step following this.
if
(
$oldversion
<
2019030600
)
{
// Update the tours shipped with Moodle.
manager
::
update_shipped_tours
();
upgrade_plugin_savepoint
(
true
,
2019030600
,
'tool'
,
'usertours'
);
}
return
true
;
}
admin/tool/usertours/version.php
View file @
a1c99c02
...
...
@@ -24,6 +24,6 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
version
=
201
81203
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
version
=
201
90306
00
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
requires
=
2018112800
;
// Requires this Moodle version.
$plugin
->
component
=
'tool_usertours'
;
// Full name of the plugin (used for diagnostics).
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment