Version 5.0.0 beta 2

This commit is contained in:
Neo committed 2025-12-19 16:39:01 -08:00
1 parent 15c7beabc5
commit f61b0da85d
181 files changed
+3182 -1533

No files matched your search

+9 -2
View File
@@ -110,7 +110,6 @@ class comments extends CommentController
{
throw new OutOfRangeException;
}
$this->class = 'IPS\cms\Records\Comment' . $database->id;
}
catch ( OutOfRangeException $e )
{
@@ -220,6 +219,14 @@ class comments extends CommentController
{
throw new Exception( 'INVALID_ID', '2T311/5', 403 );
}
if( $record->useForumComments() )
{
$this->class = 'IPS\cms\Records\CommentTopicSync' . $database->id;
}
else
{
$this->class = 'IPS\cms\Records\Comment' . $database->id;
}
/* Get author */
if ( $this->member )
@@ -242,7 +249,7 @@ class comments extends CommentController
}
else
{
if ( Request::i()->author === 0 )
if ( (int) Request::i()->author === 0 )
{
$author = new Member;
$author->name = Request::i()->author_name;