From 08b51dd06b9c139f67f64c2afb7556966dec3b43 Mon Sep 17 00:00:00 2001 From: John Okely Date: Thu, 17 Jul 2014 16:42:42 +0800 Subject: [PATCH] MDL-45339 Libraries: Add a note to docblock of get_config, set_config, and unset_config to note they are used in lib/db/upgrade.php --- lib/moodlelib.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 17c85d91409..6c92518b060 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1329,6 +1329,8 @@ function html_is_blank($string) { * * A NULL value will delete the entry. * + * NOTE: this function is called from lib/db/upgrade.php + * * @param string $name the key to set * @param string $value the value to set (without magic quotes) * @param string $plugin (optional) the plugin scope, default null @@ -1399,6 +1401,8 @@ function set_config($name, $value, $plugin=null) { * If called with 2 parameters it will return a string single * value or false if the value is not found. * + * NOTE: this function is called from lib/db/upgrade.php + * * @static string|false $siteidentifier The site identifier is not cached. We use this static cache so * that we need only fetch it once per request. * @param string $plugin full component name @@ -1485,6 +1489,8 @@ function get_config($plugin, $name = null) { /** * Removes a key from global configuration. * + * NOTE: this function is called from lib/db/upgrade.php + * * @param string $name the key to set * @param string $plugin (optional) the plugin scope * @return boolean whether the operation succeeded.