Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -33,6 +33,11 @@ class _Blog
|
||||
*/
|
||||
public $classes = array();
|
||||
|
||||
/**
|
||||
* @brief Can be shown in similar content
|
||||
*/
|
||||
public $similarContent = TRUE;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
@@ -56,7 +56,19 @@ class _Blogs
|
||||
*/
|
||||
public function canBeModerated( $member, $field )
|
||||
{
|
||||
if ( preg_match( '/^blogs\-(?:new-blog|blog|new-blog-group\d+)$/', $field->options['autoSaveKey'] ) )
|
||||
if ( preg_match( '/^blogs\-(?:new-blog|blog|new-blog-sidebar|new-blog-group\d+)$/', $field->options['autoSaveKey'] ) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
elseif ( preg_match( '/^blogs\-blog\-(\d+)m$/', $field->options['autoSaveKey'] ) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
elseif ( preg_match( '/^blogs\-blog\-(\d+)\-group(\d+)$/', $field->options['autoSaveKey'] ) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
elseif ( preg_match( '/^blogs\-blogsidebar\-(\d+)$/', $field->options['autoSaveKey'] ) )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -36,8 +36,12 @@ class _Blog
|
||||
|
||||
foreach( \IPS\blog\Blog::loadByOwner( $member2 ) as $blog )
|
||||
{
|
||||
$blog->member_id = $member->member_id;
|
||||
$blog->save();
|
||||
/* Only do this if the blog is not a group blog */
|
||||
if ( !$blog->groupblog_ids )
|
||||
{
|
||||
$blog->member_id = $member->member_id;
|
||||
$blog->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ class _RssImport
|
||||
/* Send notifications */
|
||||
$entry->sendNotifications();
|
||||
|
||||
$entry->setTags( $settings['tags'] );
|
||||
$entry->setTags( $settings['tags'], $member );
|
||||
|
||||
return $entry;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user