Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -20,9 +20,9 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
/**
|
||||
* Status Update Reply
|
||||
*/
|
||||
class _Reply extends \IPS\Content\Comment implements \IPS\Content\ReportCenter, \IPS\Content\Hideable
|
||||
class _Reply extends \IPS\Content\Comment implements \IPS\Content\Hideable
|
||||
{
|
||||
use \IPS\Content\Reactable;
|
||||
use \IPS\Content\Reactable, \IPS\Content\Reportable;
|
||||
|
||||
/**
|
||||
* @brief Application
|
||||
@@ -132,7 +132,7 @@ class _Reply extends \IPS\Content\Comment implements \IPS\Content\ReportCenter,
|
||||
*/
|
||||
public function sendNotifications()
|
||||
{
|
||||
parent::sendNotifications();
|
||||
$sentTo = parent::sendNotifications();
|
||||
|
||||
/* Notify when somebody replies to status updates I am connected to */
|
||||
$notification = new \IPS\Notification( \IPS\Application::load( 'core' ), 'profile_reply', $this, array( $this ) );
|
||||
@@ -160,18 +160,7 @@ class _Reply extends \IPS\Content\Comment implements \IPS\Content\ReportCenter,
|
||||
$notification->recipients->attach( \IPS\Member::load( $this->item()->member_id ) );
|
||||
}
|
||||
|
||||
$notification->send();
|
||||
}
|
||||
|
||||
/**
|
||||
* Can edit?
|
||||
*
|
||||
* @param \IPS\Member|NULL $member The member to check for (NULL for currently logged in member)
|
||||
* @return bool
|
||||
*/
|
||||
public function canEdit( $member=NULL )
|
||||
{
|
||||
return FALSE;
|
||||
$notification->send( $sentTo );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -200,7 +189,7 @@ class _Reply extends \IPS\Content\Comment implements \IPS\Content\ReportCenter,
|
||||
*/
|
||||
public static function contentTableTemplate()
|
||||
{
|
||||
return array( \IPS\Theme::i()->getTemplate( 'statuses', 'core' ), 'statusReplyContentRows' );
|
||||
return array( \IPS\Theme::i()->getTemplate( 'statuses', 'core', 'front' ), 'statusReplyContentRows' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user