Problem with Theme lib.php not loading - Moodle 3.11+

Re: Problem with Theme lib.php not loading - Moodle 3.11+

by Michael Hughes -
Number of replies: 2
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
This would normally indicate that the lib.php hasn't yet been included yet.
Average of ratings: Useful (1)
In reply to Michael Hughes

Re: Problem with Theme lib.php not loading - Moodle 3.11+

by Dave Emsley -
My thoughts too but I was under the impression that the themename->lib.php was automatically included?

Cheers

Dave
In reply to Dave Emsley

Re: Problem with Theme lib.php not loading - Moodle 3.11+

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers
Just checked one of my older themes (3.7) and it has
// Call the theme lib file.
require_once(__DIR__ . '/lib.php');
in the theme config.php, so I don't think the lib file is called automatically.