mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-19416 fixed PHP 5.3 compatiblity issue - fixes weird use of constructors in quickforms
This commit is contained in:
parent
29750da13d
commit
3e8b394e08
15 changed files with 53 additions and 1 deletions
|
@ -4,7 +4,10 @@ require_once("$CFG->libdir/form/submit.php");
|
|||
class MoodleQuickForm_submitlink extends MoodleQuickForm_submit {
|
||||
var $_js;
|
||||
var $_onclick;
|
||||
|
||||
function MoodleQuickForm_submitlink($elementName=null, $value=null, $attributes=null) {
|
||||
parent::MoodleQuickForm_submit($elementName, $value, $attributes);
|
||||
}
|
||||
|
||||
function toHtml() {
|
||||
$text = $this->_attributes['value'];
|
||||
$onmouseover = "window.status=\'" . $text . "\';";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue