"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/adminlib.php" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

adminlib.php  (moodle-3.6.5.tgz):adminlib.php  (moodle-3.6.6.tgz)
skipping to change at line 2425 skipping to change at line 2425
* @param string $data * @param string $data
* @param string $query * @param string $query
* @return string XHTML string for the editor * @return string XHTML string for the editor
*/ */
public function output_html($data, $query='') { public function output_html($data, $query='') {
$editor = editors_get_preferred_editor(FORMAT_HTML); $editor = editors_get_preferred_editor(FORMAT_HTML);
$editor->set_text($data); $editor->set_text($data);
$editor->use_editor($this->get_id(), array('noclean'=>true)); $editor->use_editor($this->get_id(), array('noclean'=>true));
return parent::output_html($data, $query); return parent::output_html($data, $query);
} }
/**
* Checks if data has empty html.
*
* @param string $data
* @return string Empty when no errors.
*/
public function write_setting($data) {
if (trim(html_to_text($data)) === '') {
$data = '';
}
return parent::write_setting($data);
}
} }
/** /**
* Password field, allows unmasking of password * Password field, allows unmasking of password
* *
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
class admin_setting_configpasswordunmask extends admin_setting_configtext { class admin_setting_configpasswordunmask extends admin_setting_configtext {
/** /**
 End of changes. 1 change blocks. 
0 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)