diff --git a/db/upgradelib.php b/db/upgradelib.php index cda0c9cc269..dcf49d6e917 100644 --- a/db/upgradelib.php +++ b/db/upgradelib.php @@ -98,7 +98,7 @@ function mod_book_migrate_moddata_dir_to_legacy($book, $context, $path) { $oldpathname = $base.$item->getFilename().'/'; $subpath = $path.$item->getFilename().'/'; unset($item); // release file handle - book_migrate_moddata_dir_to_legacy($book, $context, $subpath); + mod_book_migrate_moddata_dir_to_legacy($book, $context, $subpath); @rmdir($oldpathname); // deletes dir if empty } }