Version 5.0.0 beta 1

This commit is contained in:
Neo committed 2025-12-19 16:27:35 -08:00
1 parent 25ddeb65d6
commit 15c7beabc5
6736 files changed
+627902 -497943

No files matched your search

@@ -12,25 +12,29 @@
namespace IPS\nexus\setup\upg_105013;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
use IPS\Settings;
use function defined;
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.5.0 Beta 1 Upgrade Code
*/
class _Upgrade
class Upgrade
{
/**
* Update time based settings
*
* @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)
* @return bool|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 step1()
public function step1() : bool|array
{
\IPS\Settings::i()->changeValues( array( 'cm_invoice_generate' => \IPS\Settings::i()->cm_invoice_generate * 24, 'cm_invoice_warning' => \IPS\Settings::i()->cm_invoice_warning * 24 ) );
Settings::i()->changeValues( array( 'cm_invoice_generate' => Settings::i()->cm_invoice_generate * 24, 'cm_invoice_warning' => Settings::i()->cm_invoice_warning * 24 ) );
return TRUE;
}
@@ -39,7 +43,7 @@ class _Upgrade
*
* @return string
*/
public function step1CustomTitle()
public function step1CustomTitle() : string
{
return "Updating Settings";
}