mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
More multilang support for site fullname, plus a couple extra comments.
This commit is contained in:
parent
ca31757ba3
commit
3af559d414
5 changed files with 10 additions and 4 deletions
|
@ -1760,11 +1760,11 @@ class admin_setting_sitesettext extends admin_setting_configtext {
|
|||
}
|
||||
|
||||
function validate($data) {
|
||||
$cleaned = clean_param($data, PARAM_NOTAGS);
|
||||
$cleaned = stripslashes(clean_param($data, PARAM_MULTILANG));
|
||||
if ($cleaned == '') {
|
||||
return false; // can not be empty
|
||||
}
|
||||
return ("$data" == "$cleaned"); // implicit conversion to string is needed to do exact comparison
|
||||
return ($data == $cleaned); // implicit conversion to string is needed to do exact comparison
|
||||
}
|
||||
|
||||
function write_setting($data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue