Version 4.1.2

This commit is contained in:
Neo committed 2025-12-19 05:32:19 -08:00
1 parent 3ba79295ee
commit 28bd025b35
1131 files changed
+63658 -20579

No files matched your search

@@ -13,6 +13,11 @@ $options = array();
foreach( \IPS\Db::i()->select( '*', 'ccs_databases' ) as $database )
{
/* Show warning about inability to convert html */
$options[] = new \IPS\Helpers\Form\Custom( '40000_cms_htmlconversion', null, FALSE, array( 'getHtml' => function( $element ) use ( $members ){
return "HTML in pages, blocks and templates in Pages cannot be converted during the upgrade. While those pages and blocks will continue to work, you may wish to adjust the HTML following the upgrade to integrate the styling used by the Community Suite 4.0.";
} ), function( $val ) {}, NULL, NULL, '40000_cms_htmlconversion' );
$pages = array();
foreach( \IPS\Db::i()->select( '*', 'ccs_pages' ) as $page )
+10 -2
View File
@@ -154,7 +154,7 @@ class _Upgrade
}
else if ( $page['page_type'] == 'html' )
{
$save['page_content'] = str_replace( '{parse articles}', '{database="1"}', $page['page_content'] );
$save['page_content'] = str_replace( '{parse articles', '{database="1"', $page['page_content'] );
$save['page_content'] = str_replace( '{ccs special_tag="navigation"}', '', $save['page_content'] );
$save['page_content'] = preg_replace( '#\{parse database="([^"]+?)"\}#', '{database="\1"}', $save['page_content'] );
$save['page_content'] = preg_replace( '#\{parse block="([^"]+?)"\}#', '{block="\1"}', $save['page_content'] );
@@ -1277,7 +1277,15 @@ class _Upgrade
{
}
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\cms\Records' . $database['database_id'] ), 2 );
/* Some 'content' fields can be select boxes, etc and we don't want to run the text parser on those as it wraps with <p> tags */
$fieldClass = '\IPS\cms\Fields' . $database['database_id'];
$field = $fieldClass::load( $database['database_field_content'] );
if ( $field->type === 'Editor' )
{
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\cms\Records' . $database['database_id'] ), 2 );
}
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\cms\Records\Comment' . $database['database_id'] ), 2 );
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\cms\Records\Review' . $database['database_id'] ), 2 );
}