mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/10763] Make functions for remote avatars static
fileupload::image_types() and filespec::get_extension() are called statically while submitting the form for the remote avatar. Make them static as described in the ticket in order to prevent a PHP notice. Also change the tests to use the static functions. PHPBB3-10763
This commit is contained in:
@@ -205,8 +205,7 @@ class phpbb_filespec_test extends phpbb_test_case
|
||||
*/
|
||||
public function test_get_extension($filename, $expected)
|
||||
{
|
||||
$filespec = $this->get_filespec();
|
||||
$this->assertEquals($expected, $filespec->get_extension($filename));
|
||||
$this->assertEquals($expected, filespec::get_extension($filename));
|
||||
}
|
||||
|
||||
public function is_image_variables()
|
||||
|
Reference in New Issue
Block a user