Version 4.2.0

This commit is contained in:
Neo committed 2025-12-19 05:44:59 -08:00
1 parent 0dc2aee5ed
commit 96997ddd8e
2074 files changed
+125454 -55780

No files matched your search

+16 -10
View File
@@ -1,12 +1,11 @@
<?php
/**
* @brief 4.1.18 Upgrade Code
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 01 Dec 2016
* @version SVN_VERSION_NUMBER
*/
namespace IPS\core\setup\upg_101079;
@@ -47,6 +46,7 @@ class _Upgrade
{
return "Converting group promotion types";
}
/**
* Update Settings
@@ -60,7 +60,13 @@ class _Upgrade
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => 30 ), array( 'conf_key=?', 'prune_log_system' ) );
}
\IPS\Db::i()->update( 'core_sys_conf_settings', array( 'conf_value' => intval( $_SESSION['upgrade_options']['core']['']['diagnostics_reporting'] ) ), array( 'conf_key=?', 'diagnostics_reporting' ) );
\IPS\Db::i()->insert( 'core_sys_conf_settings', array(
'conf_key' => 'diagnostics_reporting',
'conf_value' => intval( $_SESSION['upgrade_options']['core']['101079']['diagnostics_reporting'] ),
'conf_default' => 1,
'conf_app' => 'core'
) );
unset( \IPS\Data\Store::i()->settings );
return TRUE;
@@ -77,7 +83,7 @@ class _Upgrade
}
/**
* Initiate rebuild tasks for repuation
* Initiate rebuild tasks for reputation
*
* @return boolean
*/
@@ -106,17 +112,17 @@ class _Upgrade
$reviewClass = $item::$reviewClass;
}
if ( isset( $item::$reputationType ) )
if ( \IPS\IPS::classUsesTrait( $item, 'IPS\Content\Reactable' ) )
{
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => $item ), 3, array( 'class' ) );
}
if ( $commentClass and isset( $commentClass::$reputationType ) )
if ( $commentClass and \IPS\IPS::classUsesTrait( $commentClass, 'IPS\Content\Reactable' ) )
{
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => $commentClass ), 3, array( 'class' ) );
}
if ( $reviewClass and isset( $reviewClass::$reputationType ) )
if ( $reviewClass and \IPS\IPS::classUsesTrait( $reviewClass, 'IPS\Content\Reactable' ) )
{
\IPS\Task::queue( 'core', 'RebuildReputationIndex', array( 'class' => $reviewClass ), 3, array( 'class' ) );
}