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

@@ -14,6 +14,7 @@ namespace IPS\convert\Software\Forums;
/* To prevent PHP errors (extending class does not exist) revealing path */
use Exception;
use IPS\convert\App;
use IPS\convert\Software;
use IPS\convert\Software\Core\UBBthreads as UBBthreadsCore;
use IPS\convert\Software\Exception as SoftwareException;
@@ -246,14 +247,15 @@ class UBBthreads 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 UBBthreadsCore::fixPostData( $post, $className, $contentId );
return UBBthreadsCore::fixPostData( $post, $className, $contentId, $app );
}
/**
@@ -290,12 +292,8 @@ class UBBthreads extends Software
'description' => $row['FORUM_DESCRIPTION'],
'topics' => $row['FORUM_TOPICS'],
'posts' => $row['FORUM_POSTS'],
'last_post' => DateTime::create()->setTimestamp( $row['FORUM_LAST_POST_TIME'] ),
'last_poster_id' => $row['FORUM_LAST_POSTER_ID'],
'last_poster_name' => $row['FORUM_LAST_POSTER_NAME'],
'parent_id' => $row['FORUM_PARENT_ID'] ?: ( 10000 + $row['CATEGORY_ID'] ),
'position' => $row['FORUM_SORT_ORDER'],
'last_title' => $row['FORUM_LAST_POST_SUBJECT'],
'allow_poll' => $row['FORUM_ALLOW_POLLS']
) );
}