MDL-22052 Formally fixed string_manager API according the recent changes

This commit is contained in:
David Mudrak 2010-06-28 16:04:22 +00:00
parent c2ba5087c2
commit 548630c50f

View File

@ -5704,9 +5704,10 @@ interface string_manager {
* Load all strings for one component
* @param string $component The module the string is associated with
* @param string $lang
* @param bool $disablecache Do not use caches, force fetching the strings from sources
* @return array of all string for given component and lang
*/
public function load_component_strings($component, $lang);
public function load_component_strings($component, $lang, $disablecache=false);
/**
* Invalidates all caches, should the implementation use any
@ -6254,9 +6255,10 @@ class install_string_manager implements string_manager {
* Load all strings for one component
* @param string $component The module the string is associated with
* @param string $lang
* @param bool $disablecache Do not use caches, force fetching the strings from sources
* @return array of all string for given component and lang
*/
public function load_component_strings($component, $lang) {
public function load_component_strings($component, $lang, $disablecache=false) {
// not needed in installer
return array();
}