Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

@@ -33,33 +33,6 @@ class _Upgrade
return TRUE;
}
/**
* Finish step
*
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
*/
public function finish()
{
/* Enable the onboarding system for those that still have the admincp notification active. */
if( \IPS\core\AdminNotification::find('core', 'ConfigurationError', 'marketplaceSetup') )
{
/* If the upgrade is from an old version, the settings may not exist yet. */
try
{
\IPS\Db::i()->select( '*', 'core_sys_conf_settings', [ 'conf_key=?', 'mp_onboard_complete' ] )->setKeyField('conf_key')->setValueField('conf_default' )->first();
}
catch( \UnderflowException $e )
{
\IPS\Db::i()->insert( 'core_sys_conf_settings', array( 'conf_key' => 'mp_onboard_complete', 'conf_value' => 0, 'conf_default' => 1, 'conf_app' => 'core' ), TRUE );
}
/* Set onboard complete flag */
\IPS\Settings::i()->changeValues( array( 'mp_onboard_complete' => 0 ) );
}
return TRUE;
}
}