Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

+14 -1
View File
@@ -109,10 +109,23 @@ class _Comment extends \IPS\Content\Comment
public function url( $action='find' )
{
$url = parent::url( $action );
$idColumn = static::$databaseColumnId;
if ( isset( $url->queryString['do'] ) )
{
return $url->setQueryString( array( 'do' => NULL, 'action' => $url->queryString['do'] ) );
return $url->stripQueryString( 'do' )->setQueryString( array( 'action' => $url->queryString['do'], 'comment' => $this->$idColumn ) );
}
return $url;
}
/**
* Can promote this comment/item?
*
* @param \IPS\Member|NULL $member The member to check for (NULL for currently logged in member)
* @return boolean
*/
public function canPromoteToSocialMedia( $member=NULL )
{
return FALSE;
}
}