Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -4,11 +4,11 @@
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: http://www.invisionpower.com/company/standards.php#license$
|
||||
* $Author: ips_terabyte $
|
||||
* $Author: mmecham $
|
||||
* @since 15th Feb 2011
|
||||
* $LastChangedDate: 2012-06-20 06:37:39 -0400 (Wed, 20 Jun 2012) $
|
||||
* @version v3.3.4
|
||||
* $Revision: 10955 $
|
||||
* $LastChangedDate: 2013-03-26 11:49:49 -0400 (Tue, 26 Mar 2013) $
|
||||
* @version v3.4.5
|
||||
* $Revision: 12124 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
@@ -132,7 +132,7 @@ class like_forums_forums_composite extends classes_like_composite
|
||||
public function notificationCanSend( $metaData )
|
||||
{
|
||||
$group = $this->caches['group_cache'][ $metaData['member_group_id'] ];
|
||||
|
||||
|
||||
/* Can only see own topics? */
|
||||
if ( ! $group['g_other_topics'] )
|
||||
{
|
||||
@@ -141,12 +141,22 @@ class like_forums_forums_composite extends classes_like_composite
|
||||
}
|
||||
|
||||
$forum = $this->registry->getClass('class_forums')->getForumById( $metaData['like_rel_id'] );
|
||||
|
||||
|
||||
/* Set member */
|
||||
$this->registry->getClass('class_forums')->setMemberData( $metaData );
|
||||
|
||||
$result = $this->registry->getClass('class_forums')->forumsCheckAccess( $forum['id'], 0, 'forum', array(), true );
|
||||
$_member = $this->registry->getClass('class_forums')->getMemberData();
|
||||
|
||||
/* Can only see own topics - forum override?
|
||||
@link http://community.invisionpower.com/resources/bugs.html/_/ip-board/notifcations-can-view-others-topics-r39414 */
|
||||
|
||||
if ( ! $forum['can_view_others'] && ! ( $_member['g_is_supmod'] || isset( $_member['forumsModeratorData'][ $forum['id'] ] ) ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$result = $this->registry->getClass('class_forums')->forumsCheckAccess( $forum['id'], 0, 'forum', array(), true );
|
||||
|
||||
/* reset */
|
||||
$this->registry->getClass('class_forums')->setMemberData( $this->memberData );
|
||||
|
||||
@@ -190,7 +200,7 @@ class like_forums_forums_composite extends classes_like_composite
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/* build email unless cached */
|
||||
if ( empty( $this->_cache['bndf'][ $forum['id'] ] ) )
|
||||
{
|
||||
@@ -225,7 +235,7 @@ class like_forums_forums_composite extends classes_like_composite
|
||||
}
|
||||
|
||||
/* Process it */
|
||||
$main_output = $this->lang->words['follow_forum'] . ":" . $forum['name'] . ")<br />"
|
||||
$main_output = $this->lang->words['follow_forum'] . ": " . $forum['name'] . "<br />"
|
||||
. "=====================================<br />"
|
||||
. $post_output
|
||||
. "<br />=====================================<br />";
|
||||
|
||||
Reference in new issue
Block a user