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

@@ -42,12 +42,12 @@ class _Upgrade
foreach( \IPS\Db::i()->select( '*', 'gallery_categories' ) as $category )
{
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}", html_entity_decode( $category['category_name'], ENT_QUOTES, 'UTF-8' ) );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}_desc", html_entity_decode( $category['category_description'], ENT_QUOTES, 'UTF-8' ) );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}", \IPS\Text\Parser::utf8mb4SafeDecode( $category['category_name'] ) );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}_desc", \IPS\Text\Parser::utf8mb4SafeDecode( $category['category_description'] ) );
$_rules = unserialize( $category['category_rules'] );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}_rulestitle", html_entity_decode( $_rules['title'], ENT_QUOTES, 'UTF-8' ) );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}_rulestitle", \IPS\Text\Parser::utf8mb4SafeDecode( $_rules['title'] ) );
\IPS\Lang::saveCustom( 'gallery', "gallery_category_{$category['category_id']}_rules", \IPS\Text\Parser::parseStatic( $_rules['text'], TRUE, NULL, NULL, TRUE, TRUE, TRUE ) );
$_sort = unserialize( $category['category_sort_options'] );
@@ -315,7 +315,7 @@ class _Upgrade
\IPS\Db::i()->dropColumn( 'gallery_images', array( 'image_thumbnail', 'image_directory', 'image_media_thumb' ) );
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key IN ( 'gallery_watermark_path', 'gallery_watermark_opacity', 'gallery_images_url', 'gallery_images_path' )" );
\IPS\Db::i()->delete( 'core_sys_conf_settings', "conf_key IN ( 'gallery_watermark_opacity', 'gallery_images_url', 'gallery_images_path' )" );
unset( \IPS\Data\Store::i()->settings, $_SESSION['_step3Count'] );
@@ -670,7 +670,6 @@ class _Upgrade
{
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\gallery\Image' ), 2 );
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\gallery\Image\Comment' ), 2 );
\IPS\Task::queue( 'core', 'RebuildPosts', array( 'class' => 'IPS\forums\Topic\ArchivedPost' ), 2 );
\IPS\Task::queue( 'core', 'RebuildNonContentPosts', array( 'extension' => 'gallery_Categories' ), 2 );
return TRUE;