]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/noavatarexception.php
Enable AntiBrute by default.
[quix0rs-gnu-social.git] / lib / noavatarexception.php
index 1f90aaf71cdf7383b9a5faa96e6e770e3eecfaed..ab2b0e8be9570fa917391acd901da2baf4707adb 100644 (file)
@@ -20,7 +20,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  * @category  Exception
- * @package   GNUSocial
+ * @package   GNUsocial
  * @author    Mikael Nordfeldth <mmn@hethane.se>
  * @copyright 2013 Free Software Foundation, Inc.
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPLv3
@@ -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);
     }
 }