]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use this for scope check
authorEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 01:13:12 +0000 (21:13 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 01:13:12 +0000 (21:13 -0400)
classes/Notice.php

index 9e4dbec9e33a6ec9fcc5bcddd46a06467212d6ae..68351477f03d388a6a7fde41862c4667d7dd17d1 100644 (file)
@@ -2366,9 +2366,9 @@ class Notice extends Managed_DataObject
 
         if ($result === false) {
             $bResult = false;
-            if (Event::handle('StartNoticeInScope', array($notice, $profile, &$bResult))) {
+            if (Event::handle('StartNoticeInScope', array($this, $profile, &$bResult))) {
                 $bResult = $this->_inScope($profile);
-                Event::handle('EndNoticeInScope', array($notice, $profile, &$bResult));
+                Event::handle('EndNoticeInScope', array($this, $profile, &$bResult));
             }
             $result = ($bResult) ? 1 : 0;
             self::cacheSet($keypart, $result, 0, 300);