MDL-11113: Next moodle version requires PHP5: removing php4 compatibility code.

This commit is contained in:
scyrma
2008-06-27 03:00:29 +00:00
parent 6e52af6675
commit 16e2b71a54
2 changed files with 7 additions and 30 deletions
+5 -17
View File
@@ -3,7 +3,7 @@
/**
* Editor class for Moodle.
*
* This library is made to make easier to intergrate
* This library is made to make easier to integrate
* WYSIWYG editors into Moodle.
*
* @author Janne Mikkonen
@@ -32,24 +32,14 @@ class editorObject {
var $cfg;
/**
* PHP4 style class constructor.
*
* @uses $CFG, $USER
* Constructor
*/
function editorObject () {
function __construct() {
global $CFG, $USER;
$this->cfg = &$CFG;
$this->user = &$USER;
$this->courseid = NULL;
}
/**
* PHP5 style class constructor.
*
*/
function __construct() {
$this->editorObject();
}
}
/**
* Method to load necessary editor codes to
@@ -106,9 +96,7 @@ class editorObject {
return (new tinymce($courseid));
break;
}
}
}
/**
@@ -123,6 +111,6 @@ class editorObject {
echo '</div>';
exit;
}
}
?>