From 06299fc604dd054d0aef9851fe958a5fafbbe455 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Tue, 21 Jan 2020 13:32:50 +0100 Subject: [PATCH] MDL-67063 output: make public get_jsrev method --- lib/outputrequirementslib.php | 2 +- lib/upgrade.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 3eb24e2b680..34cd2fe5767 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -400,7 +400,7 @@ class page_requirements_manager { * * @return int the jsrev to use. */ - protected function get_jsrev() { + public function get_jsrev() { global $CFG; if (empty($CFG->cachejs)) { diff --git a/lib/upgrade.txt b/lib/upgrade.txt index 3ae720c9889..6d37db4e2a2 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -34,6 +34,7 @@ information provided here is intended especially for developers. * Added function cleanup_after_drop to the database_manager class to take care of all the cleanups that need to be done after a table is dropped. * The 'xxxx_check_password_policy' callback now only fires if $CFG->passwordpolicy is true * grade_item::update_final_grade() can now take an optional parameter to set the grade->timemodified. If not present the current time will carry on being used. +* lib/outputrequirementslib::get_jsrev now is public, it can be called from other classes. === 3.8 === * Add CLI option to notify all cron tasks to stop: admin/cli/cron.php --stop