Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -16,6 +16,7 @@ namespace IPS\convert\Software\Forums;
|
||||
use DomainException;
|
||||
use Exception;
|
||||
use IPS\Content;
|
||||
use IPS\convert\App;
|
||||
use IPS\convert\Software;
|
||||
use IPS\convert\Software\Core\Mybb as MybbCore;
|
||||
use IPS\Db;
|
||||
@@ -209,14 +210,15 @@ class Mybb 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 MybbCore::fixPostData( $post, $className, $contentId );
|
||||
return MybbCore::fixPostData( $post, $className, $contentId, $app );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -227,7 +229,6 @@ class Mybb extends Software
|
||||
public function convertForumsForums(): void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
$libraryClass::setKey( 'fid' );
|
||||
|
||||
foreach( $this->fetch( 'forums', 'fid' ) AS $row )
|
||||
@@ -238,13 +239,9 @@ class Mybb extends Software
|
||||
'description' => $row['description'],
|
||||
'topics' => $row['threads'],
|
||||
'posts' => $row['posts'],
|
||||
'last_post' => $row['lastpost'],
|
||||
'last_poster_id' => $row['lastposteruid'],
|
||||
'last_poster_name' => $row['lastposter'],
|
||||
'parent_id' => $row['pid'] ?: -1,
|
||||
'position' => $row['disporder'],
|
||||
'password' => $row['password'] ?: NULL,
|
||||
'last_title' => $row['lastpostsubject'],
|
||||
'inc_postcount' => $row['usepostcounts'],
|
||||
'redirect_url' => $row['linkto'],
|
||||
'sub_can_post' => ( $row['type'] == 'c' ) ? 0 : 1,
|
||||
|
||||
Reference in new issue
Block a user