]> git.mjollnir.org Git - moodle.git/commitdiff
Minor code cleanup - documentation already specifies that 'moodle.php' is the default...
authorscyrma <scyrma>
Wed, 30 Jul 2008 05:19:18 +0000 (05:19 +0000)
committerscyrma <scyrma>
Wed, 30 Jul 2008 05:19:18 +0000 (05:19 +0000)
lib/moodlelib.php

index c0e050a6783a5930c508c536ca81e166c1563f6d..c70d663838d88ff52990bf48041e80e77f07308b 100644 (file)
@@ -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='', $a=NULL, $extralocations=NULL) {
+function get_string($identifier, $module='moodle', $a=NULL, $extralocations=NULL) {
     global $CFG;
 
 /// originally these special strings were stored in moodle.php now we are only in langconfig.php
@@ -5109,10 +5109,6 @@ function get_string($identifier, $module='', $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 );