Skip to content
Browse files

Merge branch 'MDL-33362-m23' of git://github.com/ankitagarwal/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents dcf82e6 + 9ff0c0b commit bab65024ad28ba2c19018261b1f54858d31e62d0 @danpoltawski danpoltawski committed Aug 20, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 mod/book/backup/moodle2/restore_book_activity_task.class.php
  2. +1 −1 mod/book/version.php
View
3 mod/book/backup/moodle2/restore_book_activity_task.class.php
@@ -82,6 +82,9 @@ static public function define_decode_rules() {
$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;
}
View
2 mod/book/version.php
@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die;
$module->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
-$module->version = 2012061700; // The current module version (Date: YYYYMMDDXX)
+$module->version = 2012061701; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2012061700; // Requires this Moodle version
$module->cron = 0; // Period for cron to check this module (secs)

0 comments on commit bab6502

Please sign in to comment.
Something went wrong with that request. Please try again.