MDLSITE-3080 converted constant to numeral. (moodlelib.php wasn't loaded- constant was undefined and it was loading default ttl)