Handle File thumbnail errors better
This commit is contained in:
@@ -31,9 +31,9 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
|
||||
class UnsupportedMediaException extends ServerException
|
||||
{
|
||||
public function __construct($msg, $path)
|
||||
public function __construct($msg, $path=null)
|
||||
{
|
||||
common_debug(sprintf('UnsupportedMediaException "%1$s" for file "%2$s"', $msg, $path));
|
||||
common_debug(sprintf('UnsupportedMediaException "%1$s". File path (if given): "%2$s"', $msg, $path));
|
||||
parent::__construct($msg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user