Scripts not running due to instance properties not reloaded
authorFrederic Massart <fred@moodle.com>
Thu, 26 Sep 2013 08:32:28 +0000 (16:32 +0800)
committerFrederic Massart <fred@moodle.com>
Thu, 26 Sep 2013 08:32:28 +0000 (16:32 +0800)
lib/moodle.py

index e502917..ffe726a 100644 (file)
@@ -367,6 +367,8 @@ class Moodle(object):
 
     def isInstalled(self):
         """Returns whether this instance is installed or not"""
+        # Reload the configuration if necessary.
+        self._load()
         return self.installed == True
 
     @staticmethod