MDL-38654 do not test $CFG->gdversion
GD PHP extension is now required. Add-ons need to remove $CFG->gdversion tests. The worst case regression is that add-on will think GD is not available.
This commit is contained in:
+1
-1
@@ -259,7 +259,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null, $filemanager
|
||||
$mform->setType('description_editor', PARAM_CLEANHTML);
|
||||
$mform->addHelpButton('description_editor', 'userdescription');
|
||||
|
||||
if (!empty($CFG->gdversion) and empty($USER->newadminuser)) {
|
||||
if (empty($USER->newadminuser)) {
|
||||
$mform->addElement('header', 'moodle_picture', get_string('pictureofuser'));
|
||||
|
||||
if (!empty($CFG->enablegravatar)) {
|
||||
|
||||
Reference in New Issue
Block a user