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

@@ -1,23 +0,0 @@
{
"id": 107798,
"name": "4.7.20 Beta 4",
"steps": {
"queries": false,
"lang": true,
"theme": true,
"themeSettings": false,
"javascript": true,
"emailTemplates": true,
"hooks": false,
"acpSearchKeywords": false,
"settings": false,
"tasks": false,
"modules": false,
"widgets": false,
"customOptions": false,
"customRoutines": true
},
"forceMainUpgrader": true,
"forceManualDownloadNoCiC": false,
"forceManualDownloadCiC": false
}
@@ -1,7 +0,0 @@
{
"added": [
"acp_notification_VersionFive"
],
"edited": [],
"removed": []
}
@@ -1,14 +0,0 @@
{
"files": {
"added": [],
"edited": [
"global\/library\/app.js"
],
"removed": []
},
"orders": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -1,22 +0,0 @@
{
"normal": {
"added": [
"v5_deprecate_sendgrid",
"v5_notification_title",
"v5_notification_body",
"acp_notification_VersionFive",
"mailsub__core_acp_notification_VersionFive",
"health_v5_upgrade_attention",
"health_info"
],
"edited": [
"support_v5_ready_blurb"
],
"removed": []
},
"js": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -1,19 +0,0 @@
{
"html": {
"added": [],
"edited": [
"admin\/support\/v5"
],
"removed": []
},
"css": {
"added": [],
"edited": [],
"removed": []
},
"resources": {
"added": [],
"edited": [],
"removed": []
}
}
@@ -1,63 +0,0 @@
<?php
/**
* @brief 4.7.20 Beta 4 Upgrade Code
* @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 21 Jan 2025
*/
namespace IPS\core\setup\upg_107798;
use IPS\Db;
use IPS\Settings;
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 4.7.20 Beta 4 Upgrade Code
*/
class _Upgrade
{
/**
* Show Sendgrid for those that have it configured
*
* @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()
{
try
{
Db::i()->select( 'conf_value', 'core_sys_conf_settings', [ 'conf_key=?', 'sendgrid_deprecated' ] )->first();
}
catch( \UnderflowException $ex )
{
$insert = [
'conf_key' => 'sendgrid_deprecated',
'conf_value' => '',
'conf_default' => '1',
'conf_keywords' => '',
'conf_app' => 'core',
'conf_report' => 'full'
];
/* This key was added in 4.7.20 Beta 1 so it may not exist */
Db::i()->insert( 'core_sys_conf_settings', $insert );
}
/* Make we see's our new one */
Settings::i()->clearCache();
/* Set our value */
Settings::i()->changeValues( [ 'sendgrid_deprecated' => Settings::i()->sendgrid_api_key ? 0 : 1 ] );
return TRUE;
}
}