Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

+14 -2
View File
@@ -296,7 +296,7 @@ class _Status extends \IPS\Content\Item implements \IPS\Content\Lockable, \IPS\C
$return = TRUE;
/* Can we access the module? */
if( !( $member->canAccessModule( \IPS\Application\Module::get( 'core', 'status' ) ) and \IPS\Settings::i()->profile_comments ) )
if( !( $member->canAccessModule( \IPS\Application\Module::get( 'core', 'status', 'front' ) ) and \IPS\Settings::i()->profile_comments ) )
{
return FALSE;
}
@@ -420,7 +420,9 @@ class _Status extends \IPS\Content\Item implements \IPS\Content\Lockable, \IPS\C
'key' => mb_ucfirst( static::$module ),
'maxLength' => 65535,
'autoSaveKey' => 'reply-' . static::$application . '/' . static::$module . '-' . $this->$idColumn,
'minimize' => isset( \IPS\Request::i()->$submitted ) ? NULL : static::$formLangPrefix . '_comment_placeholder'
'minimize' => isset( \IPS\Request::i()->$submitted ) ? NULL : static::$formLangPrefix . '_comment_placeholder',
'contentClass' => \get_called_class(),
'contentId' => $this->$idColumn
), function() use( $self ) {
if ( !$self->mergeConcurrentComment() )
{
@@ -875,4 +877,14 @@ class _Status extends \IPS\Content\Item implements \IPS\Content\Lockable, \IPS\C
return $return;
}
/**
* Whether or not to include in site search
*
* @return bool
*/
public static function includeInSiteSearch()
{
return \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'status', 'front' ) );
}
}