Closed danowar2k closed 2 years ago
We've just encountered a problem with the content bank in Moodle 3.9.7. On that page something with $PAGE hasn't been done yet that is necessary before we are allowed to access $PAGE->theme . Therefore the above approach leads to a error on that page.
The question would be is there an error on that page (contentbank/index.php) or are we doing stuff that we shouldn't be doing...
Well, I'm gonna close this because it is not relevant to us anymore.
This is an older issue as we finally drop support for a Clean-based theme we were using.
You don't check whether the current theme is a Boost based theme before manipulating it. This led to missing nodes when using a Clean based theme.
I'll just paste a "fix" for this here
lib.php:
lib.php, second part: