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
2609ae6f
Commit
2609ae6f
authored
Aug 16, 2012
by
Ankit Agarwal
Browse files
MDL-33362 book: Parse links to book modules from 1.9 backups
parent
87e9331d
Changes
2
Hide whitespace changes
Inline
Side-by-side
mod/book/backup/moodle2/restore_book_activity_task.class.php
View file @
2609ae6f
...
...
@@ -82,6 +82,9 @@ class restore_book_activity_task extends restore_activity_task {
$rules
[]
=
new
restore_decode_rule
(
'BOOKVIEWBYB'
,
'/mod/book/view.php?b=$1'
,
'book'
);
$rules
[]
=
new
restore_decode_rule
(
'BOOKVIEWBYBCH'
,
'/mod/book/view.php?b=$1&chapterid=$2'
,
array
(
'book'
,
'book_chapter'
));
// Convert old book links MDL-33362
$rules
[]
=
new
restore_decode_rule
(
'BOOKSTART'
,
'/mod/book/view.php?id=$1'
,
'course_module'
);
return
$rules
;
}
...
...
mod/book/version.php
View file @
2609ae6f
...
...
@@ -25,6 +25,6 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
;
$module
->
component
=
'mod_book'
;
// Full name of the plugin (used for diagnostics)
$module
->
version
=
20120
617
00
;
// The current module version (Date: YYYYMMDDXX)
$module
->
version
=
20120
816
00
;
// The current module version (Date: YYYYMMDDXX)
$module
->
requires
=
2012061700
;
// Requires this Moodle version
$module
->
cron
=
0
;
// Period for cron to check this module (secs)
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