From 735547525aafd3ac57241a356889cf2671786c67 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 22 Nov 2004 16:09:06 +0000 Subject: [PATCH] Added dummy constructor to keep PHP5 happy. --- blocks/moodleblock.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 +?> -- 2.39.5