]> git.mjollnir.org Git - moodle.git/commitdiff
Start on MDL-12730 .. fixes some E_STRICT messages for 2.0.
authorscyrma <scyrma>
Fri, 25 Jan 2008 08:39:14 +0000 (08:39 +0000)
committerscyrma <scyrma>
Fri, 25 Jan 2008 08:39:14 +0000 (08:39 +0000)
lib/pagelib.php

index afd4344309d40a19ea92cd4d9bd2a3e232f65142..c6053d3ef8b7e04fea6ffcbf4d9b7925d9d3135b 100644 (file)
@@ -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) {
@@ -152,10 +152,6 @@ class page_base {
 
     // A whole battery of functions to allow standardized-name constructors in all versions of PHP.
     // The constructor is actually called construct()
-    function page_base() {
-        $this->construct();
-    }
-
     function __construct() {
         $this->construct();
     }
@@ -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 <strong>print_header()</strong>', E_USER_WARNING);
         return;
     }