mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
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
24 lines
416 B
PHP
24 lines
416 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package testing
|
|
* @copyright (c) 2012 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* Mock fileupload class with some basic values to help with testing the
|
|
* filespec class
|
|
*/
|
|
class phpbb_mock_fileupload
|
|
{
|
|
public $max_filesize = 100;
|
|
public $error_prefix = '';
|
|
|
|
public function valid_dimensions($filespec)
|
|
{
|
|
return true;
|
|
}
|
|
}
|