mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-16 21:54:00 +02:00
[ticket/16955] Clean up avatar classes
PHPBB3-16955
This commit is contained in:
@@ -95,7 +95,7 @@ interface driver_interface
|
||||
* an array that will be passed to vsprintf() with the language key in
|
||||
* the first array key.
|
||||
*
|
||||
* @return array Array containing the avatar data as follows:
|
||||
* @return array|false Array containing the avatar data as follows or false if processing failed:
|
||||
* ['avatar'], ['avatar_width'], ['avatar_height']
|
||||
*/
|
||||
public function process_form($request, $template, $user, $row, &$error);
|
||||
|
@@ -284,6 +284,6 @@ class upload extends \phpbb\avatar\driver\driver
|
||||
*/
|
||||
protected function can_upload()
|
||||
{
|
||||
return $this->php_ini->getBool('file_uploads');
|
||||
return (bool) $this->php_ini->getBool('file_uploads');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user