Browse Source

Fix FormValidator::addUserAvatar - refs BT#12955

Angel Fernando Quiroz Campos 7 years ago
parent
commit
137527fab9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/formvalidator/FormValidator.class.php

+ 1 - 1
main/inc/lib/formvalidator/FormValidator.class.php

@@ -1764,7 +1764,7 @@ EOT;
      */
     public function addUserAvatar($name, $label, $imageSize = 'small', $subtitle = '')
     {
-        return $this->addElement('InputUser', $name, $label, ['image_size' => $imageSize, 'sub_title' => $subtitle]);
+        return $this->addElement('UserAvatar', $name, $label, ['image_size' => $imageSize, 'sub_title' => $subtitle]);
     }
 }