NoResultException returns the failed object

This commit is contained in:
Mikael Nordfeldth
2013-10-08 00:21:24 +02:00
parent 1d8b19fe54
commit 9ddc40b6da
4 changed files with 20 additions and 13 deletions

View File

@@ -31,8 +31,11 @@ if (!defined('GNUSOCIAL')) { exit(1); }
class NoAvatarException extends NoResultException
{
public function __construct(Profile $target, Avatar $avatar)
public $target;
public function __construct(Profile $target, Avatar $obj)
{
parent::__construct($avatar);
$this->target = $target;
parent::__construct($obj);
}
}