Version 5.0.0 release

This commit is contained in:
Neo committed 2025-12-19 18:37:58 -08:00
1 parent 90e8c7e903
commit a3a4a9ccbd
651 files changed
+7275 -9481

No files matched your search

@@ -51,6 +51,13 @@ class login extends Controller
*/
protected static int $minimumv5 = 5000015;
/**
* Minimum version from which we allow an upgrade
*
* @var int
*/
protected static int $minimumBaseVersion = 105013;
/**
* Show login form and/or process login form
*
@@ -111,6 +118,14 @@ class login extends Controller
$canUpgrade = FALSE;
$currentBaseVersion = Db::i()->select( 'app_long_version', 'core_applications', [ 'app_directory=?', 'core' ] )->first();
/* If we are upgrading from a verison earlier than 4.5, stop here */
if( $currentBaseVersion < static::$minimumBaseVersion )
{
Output::i()->output .= Theme::i()->getTemplate( 'global' )->block( 'applications', Theme::i()->getTemplate( 'forms' )->minversioncheck() );
Upgrade::setUpgradingFlag( FALSE );
return;
}
/* If we are upgrading from a version earlier than v5, disable and lock anything that isn't 1st party */
if( $currentBaseVersion < static::$minimumv5 )
{