Advertisement
sarjona

pagelib_patch

Nov 9th, 2021
1,464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.70 KB | None | 0 0
  1. diff --git a/lib/pagelib.php b/lib/pagelib.php
  2. index 189ece5d763..cfc525673a8 100644
  3. --- a/lib/pagelib.php
  4. +++ b/lib/pagelib.php
  5. @@ -977,7 +977,7 @@ class moodle_page {
  6.          require_once($CFG->libdir.'/outputfragmentrequirementslib.php');
  7.  
  8.          // Check that the requirements manager has not already been switched.
  9. -        if (get_class($this->_requires) == 'fragment_requirements_manager') {
  10. +        if (get_class($this->__get('requires')) == 'fragment_requirements_manager') {
  11.              throw new coding_exception('JavaScript collection has already been started.');
  12.          }
  13.          // The header needs to have been called to flush out the generic JavaScript for the page. This allows only
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement