Use this for scope check

This commit is contained in:
Evan Prodromou 2012-03-20 21:13:12 -04:00
parent 3619f9faaa
commit e7a38f799b

View File

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