Skip to content

Commit

Permalink
MDL-35007 book: Adding rule to parse links to book chapters from 1.9 …
Browse files Browse the repository at this point in the history
…backups

Conflicts:

	mod/book/version.php
  • Loading branch information
ankitagarwal committed Sep 7, 2012
1 parent 71e12dc commit 41b997b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mod/book/backup/moodle2/restore_book_activity_task.class.php
Expand Up @@ -82,8 +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
// Convert old book links MDL-33362 & MDL-35007
$rules[] = new restore_decode_rule('BOOKSTART', '/mod/book/view.php?id=$1', 'course_module');
$rules[] = new restore_decode_rule('BOOKCHAPTER', '/mod/book/view.php?id=$1&chapterid=$2', array('course_module', 'book_chapter'));

return $rules;
}
Expand Down
2 changes: 1 addition & 1 deletion mod/book/version.php
Expand Up @@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die;

$module->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
$module->version = 2012061701; // The current module version (Date: YYYYMMDDXX)
$module->version = 2012061702; // 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 41b997b

Please sign in to comment.