MDL-66075 mod_forum: reduce DB reads in forum settings generation
authorJake Dallimore <jake@moodle.com>
Fri, 27 Sep 2019 01:23:27 +0000 (09:23 +0800)
committerJake Dallimore <jake@moodle.com>
Fri, 27 Sep 2019 01:50:23 +0000 (09:50 +0800)
commitf5e6bcf026674a70c0504e3505d0390d88e37a30
tree2b7c0c09de51c0ea58e9ab8efb1d047e2ab47b6b
parentc3122dfcf57d55fe4d4013e429e1b449b205660a
MDL-66075 mod_forum: reduce DB reads in forum settings generation

Instead of fetching the DB record AND then fetching it again (as
part of the vault->get_from_id() call, just use the legacy data
mapper and remove the DB call.
mod/forum/lib.php