Version 5.0.6

This commit is contained in:
Neo committed 2025-12-19 18:55:49 -08:00
1 parent a3a4a9ccbd
commit b89858b2ff
1214 files changed
+92828 -14859

No files matched your search

@@ -273,14 +273,15 @@ class Xenforo extends Software
/**
* Pre-process content for the Invision Community text parser
*
* @param string $post The post
* @param string|null $className Content Classname passed by post-conversion rebuild
* @param int|null $contentId Content ID passed by post-conversion rebuild
* @param string The post
* @param string|null Content Classname passed by post-conversion rebuild
* @param int|null Content ID passed by post-conversion rebuild
* @param App|null App object if available
* @return string The converted post
*/
public static function fixPostData( string $post, ?string $className=null, ?int $contentId=null ): string
public static function fixPostData( string $post, ?string $className=null, ?int $contentId=null, ?App $app=null ): string
{
return XenforoCore::fixPostData( $post, $className, $contentId );
return XenforoCore::fixPostData( $post, $className, $contentId, $app );
}
/**
@@ -338,12 +339,8 @@ class Xenforo extends Software
'description' => $row['description'],
'topics' => ( isset( $data['discussion_count'] ) ) ? $data['discussion_count'] : 0,
'posts' => ( isset( $data['message_count'] ) ) ? $data['message_count'] : 0,
'last_post' => ( isset( $data['last_post_date'] ) ) ? $data['last_post_date'] : 0,
'last_poster_id' => ( isset( $data['last_post_user_id'] ) ) ? $data['last_post_user_id'] : 0,
'last_poster_name' => ( isset( $data['last_poster_name'] ) ) ? $data['last_post_username'] : '',
'parent_id' => ( $row['parent_node_id'] == 0 ) ? -1 : $row['parent_node_id'],
'position' => $row['display_order'],
'last_title' => ( isset( $data['last_thread_title'] ) ) ? $data['last_thread_title'] : '',
'allow_poll' => ( isset( $data['allow_poll'] ) ) ? $data['allow_poll'] : 0,
'inc_postcount' => ( isset( $data['count_messages'] ) ) ? $data['count_messages'] : 0,
'redirect_url' => ( isset( $data['link_url'] ) ) ? $data['link_url'] : NULL,