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\Expressionengine as ExpressionEngineCore;
|
||||
use IPS\Db;
|
||||
@@ -197,14 +198,15 @@ class Expressionengine 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 ExpressionEngineCore::fixPostData( $post, $className, $contentId );
|
||||
return ExpressionEngineCore::fixPostData( $post, $className, $contentId, $app );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -215,7 +217,6 @@ class Expressionengine extends Software
|
||||
public function convertForumsForums() : void
|
||||
{
|
||||
$libraryClass = $this->getLibrary();
|
||||
|
||||
$libraryClass::setKey( 'forum_id' );
|
||||
|
||||
foreach( $this->fetch( 'exp_forums', 'forum_id' ) AS $row )
|
||||
@@ -226,12 +227,8 @@ class Expressionengine extends Software
|
||||
'description' => $row['forum_description'],
|
||||
'topics' => $row['forum_total_topics'],
|
||||
'posts' => $row['forum_total_posts'],
|
||||
'last_post' => $row['forum_last_post_date'],
|
||||
'last_poster_id' => $row['forum_last_post_author_id'],
|
||||
'last_poster_name' => $row['forum_last_post_author'],
|
||||
'parent_id' => ( $row['forum_parent'] == 0 ) ? -1 : $row['forum_parent'],
|
||||
'position' => $row['forum_order'],
|
||||
'last_title' => $row['forum_last_post_title'],
|
||||
'allow_poll' => 1,
|
||||
'inc_postcount' => 1,
|
||||
'sub_can_post' => 1,
|
||||
|
||||
Reference in new issue
Block a user