fix deprecated log action in the modlib.php