Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

@@ -1536,6 +1536,7 @@ class _Categories extends \IPS\Node\Model implements \IPS\Node\Permissions
$this->last_record_name = '';
$this->last_title = NULL;
$this->last_record_id = 0;
$this->last_poster_anon = 0;
return;
}
}
@@ -1549,6 +1550,7 @@ class _Categories extends \IPS\Node\Model implements \IPS\Node\Permissions
$this->last_title = mb_substr( $comment->item()->mapped('title'), 0, 255 );
$this->last_seo_title = \IPS\Http\Url\Friendly::seoTitle( $this->last_title );
$this->last_record_id = $comment->item()->_id;
$this->last_poster_anon = $comment->isAnonymous();
}
else if ( static::$latestRecordAdded !== NULL )
{
@@ -1558,6 +1560,7 @@ class _Categories extends \IPS\Node\Model implements \IPS\Node\Permissions
$this->last_title = mb_substr( static::$latestRecordAdded->_title, 0, 255 );
$this->last_seo_title = \IPS\Http\Url\Friendly::seoTitle( mb_substr( static::$latestRecordAdded->_title, 0, 255 ) );
$this->last_record_id = static::$latestRecordAdded->_id;
$this->last_poster_anon = static::$latestRecordAdded->isAnonymous();
}
$this->records = \IPS\Db::i()->select( 'COUNT(*)', 'cms_custom_database_' . $this->database_id, array( 'record_approved=1 AND record_future_date=0 AND category_id=?', $this->id ), NULL, NULL, NULL, NULL, \IPS\Db::SELECT_FROM_WRITE_SERVER )->first();