From: moodler Date: Mon, 22 Nov 2004 16:09:06 +0000 (+0000) Subject: Added dummy constructor to keep PHP5 happy. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=735547525aafd3ac57241a356889cf2671786c67;p=moodle.git Added dummy constructor to keep PHP5 happy. --- diff --git a/blocks/moodleblock.class.php b/blocks/moodleblock.class.php index 721c426233..8585057b5a 100644 --- a/blocks/moodleblock.class.php +++ b/blocks/moodleblock.class.php @@ -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 +?>