From e3a08c6eaa394b326e622c541f4d1e276d2425ec Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 25 Jan 2008 08:34:37 +0000 Subject: [PATCH] Start on MDL-12730 .. fixes some E_STRICT messages for 1.9 (removing __construct in this branch only, to stay compatible with PHP4) --- lib/pagelib.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pagelib.php b/lib/pagelib.php index afd4344309d..5ce1c583d81 100644 --- a/lib/pagelib.php +++ b/lib/pagelib.php @@ -64,7 +64,7 @@ function page_create_object($type, $id = NULL) { $classname = page_map_class($type); - $object = &new $classname; + $object = new $classname; // TODO: subclassing check here if ($object->get_type() !== $type) { @@ -156,10 +156,6 @@ class page_base { $this->construct(); } - function __construct() { - $this->construct(); - } - function construct() { page_id_and_class($this->body_id, $this->body_class); } @@ -181,7 +177,7 @@ class page_base { // HTML OUTPUT SECTION // We have absolutely no idea what derived pages are all about - function print_header($title, $morenavlinks) { + function print_header($title, $morenavlinks=NULL) { trigger_error('Page class does not implement method print_header()', E_USER_WARNING); return; }