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

+51 -21
View File
@@ -170,8 +170,8 @@ abstract class Software
*/
public static function software() : array
{
return array(
'core' => array(
$software = [
'core' => [
'expressionengine' => 'IPS\convert\Software\Core\Expressionengine',
'invisioncommunity' => 'IPS\convert\Software\Core\Invisioncommunity',
'joomla' => 'IPS\convert\Software\Core\Joomla',
@@ -189,28 +189,28 @@ abstract class Software
'wordpress' => 'IPS\convert\Software\Core\Wordpress',
'wpforo' => 'IPS\convert\Software\Core\Wpforo',
'xenforo' => 'IPS\convert\Software\Core\Xenforo',
),
'blog' => array(
],
'blog' => [
'vbulletin' => 'IPS\convert\Software\Blog\Vbulletin',
'invisioncommunity' => 'IPS\convert\Software\Blog\Invisioncommunity',
),
'calendar' => array(
],
'calendar' => [
'mybb' => 'IPS\convert\Software\Calendar\Mybb',
'vbulletin' => 'IPS\convert\Software\Calendar\Vbulletin',
'invisioncommunity' => 'IPS\convert\Software\Calendar\Invisioncommunity',
),
'cms' => array(
],
'cms' => [
'joomla' => 'IPS\convert\Software\Cms\Joomla',
'vbulletin' => 'IPS\convert\Software\Cms\Vbulletin',
'wordpress' => 'IPS\convert\Software\Cms\Wordpress',
'xenforo' => 'IPS\convert\Software\Cms\Xenforo',
'xenfororm' => 'IPS\convert\Software\Cms\Xenfororm',
),
'downloads' => array(
],
'downloads' => [
'invisioncommunity' => 'IPS\convert\Software\Downloads\Invisioncommunity',
'xenforo' => 'IPS\convert\Software\Downloads\Xenforo',
),
'forums' => array(
],
'forums' => [
'bbpress' => 'IPS\convert\Software\Forums\Bbpress',
'expressionengine' => 'IPS\convert\Software\Forums\Expressionengine',
'invisioncommunity' => 'IPS\convert\Software\Forums\Invisioncommunity',
@@ -226,17 +226,46 @@ abstract class Software
'woltlab' => 'IPS\convert\Software\Forums\Woltlab',
'wpforo' => 'IPS\convert\Software\Forums\Wpforo',
'xenforo' => 'IPS\convert\Software\Forums\Xenforo',
),
'gallery' => array(
],
'gallery' => [
'coppermine' => 'IPS\convert\Software\Gallery\Coppermine',
'invisioncommunity' => 'IPS\convert\Software\Gallery\Invisioncommunity',
'photoplog' => 'IPS\convert\Software\Gallery\Photoplog',
'photopost' => 'IPS\convert\Software\Gallery\Photopost',
'vbulletin' => 'IPS\convert\Software\Gallery\Vbulletin',
'xenforo' => 'IPS\convert\Software\Gallery\Xenforo',
),
'nexus' => array()
);
],
'nexus' => []
];
/* Library Extensions */
foreach ( Application::allExtensions( 'convert', 'Library', FALSE, construct: false ) as $extension )
{
try
{
if( !empty( $extension::$app ) AND !isset( $software[ $extension::$app ] ) )
{
$software[ $extension::$app ] = [];
}
}
catch( \BadMethodCallException ) {}
}
/* Software Extensions */
foreach ( Application::allExtensions( 'convert', 'Software', FALSE, construct: false ) as $extension )
{
try
{
if( !empty( $extension::$targetApp ) AND isset( $software[ $extension::$targetApp ] )
AND !isset( $software[ $extension::$targetApp ][ $extension::softwareKey() ] ) )
{
$software[ $extension::$targetApp ][ $extension::softwareKey() ] = $extension;
}
}
catch( \BadMethodCallException ) {}
}
return $software;
}
/**
@@ -516,12 +545,13 @@ abstract class 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 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 $post;
}