Prevent extra config reload in Moodle instances
authorFrederic Massart <fred@moodle.com>
Mon, 9 Sep 2013 07:42:23 +0000 (15:42 +0800)
committerFrederic Massart <fred@moodle.com>
Mon, 9 Sep 2013 07:42:23 +0000 (15:42 +0800)
lib/moodle.py

index 4847b1a..e502917 100644 (file)
@@ -517,9 +517,8 @@ class Moodle(object):
             raise Exception('Error while purging cache!')
 
     def reload(self):
-        """Reloads the information"""
+        """Sets the value to be reloaded"""
         self._loaded = False
-        return self._load()
 
     def removeConfig(self, name):
         """Remove a configuration setting from the config file."""