From f99442e31222c2f632a29c5ec38b94e36ba765eb Mon Sep 17 00:00:00 2001 From: scyrma Date: Wed, 30 Jul 2008 07:05:15 +0000 Subject: [PATCH] Reverting previous commit that broke code that depended on the absence of parameter --- lib/moodlelib.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index c70d663838..c0e050a678 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -5090,7 +5090,7 @@ or * @param array $extralocations An array of strings with other locations to look for string files * @return string The localized string. */ -function get_string($identifier, $module='moodle', $a=NULL, $extralocations=NULL) { +function get_string($identifier, $module='', $a=NULL, $extralocations=NULL) { global $CFG; /// originally these special strings were stored in moodle.php now we are only in langconfig.php @@ -5109,6 +5109,10 @@ function get_string($identifier, $module='moodle', $a=NULL, $extralocations=NULL $lang = current_language(); + if ($module == '') { + $module = 'moodle'; + } + // if $a happens to have % in it, double it so sprintf() doesn't break if ($a) { $a = clean_getstring_data( $a ); -- 2.39.5