]> git.mjollnir.org Git - moodle.git/commitdiff
Added dummy constructor to keep PHP5 happy.
authormoodler <moodler>
Mon, 22 Nov 2004 16:09:06 +0000 (16:09 +0000)
committermoodler <moodler>
Mon, 22 Nov 2004 16:09:06 +0000 (16:09 +0000)
blocks/moodleblock.class.php

index 721c426233e03b024bca964deb7dad6fdfe61bc5..8585057b5af27657a5f81617307c310c1b51e2ca 100644 (file)
@@ -94,6 +94,14 @@ class MoodleBlock {
         $this->init();
     }
 
+    /**
+     * Fake constructor to keep PHP5 happy
+     *
+     */
+    function __construct() {
+        $this->MoodleBlock();
+    }
+
     /**
      * Returns the block name, as present in the class name,
      * the database, the block directory, etc etc.
@@ -594,4 +602,4 @@ class MoodleBlock_Nuke extends MoodleBlock {
     }
 }
 
-?>
\ No newline at end of file
+?>