瀏覽代碼

Fix FormValidator::addUserAvatar - refs BT#12955

Angel Fernando Quiroz Campos 7 年之前
父節點
當前提交
137527fab9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]);
     }
 }