Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": 5000057,
|
||||
"name": "5.0.3",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeeditor": true,
|
||||
"javascript": true,
|
||||
"emailTemplates": true,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": false,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": false,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": true,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"emailWrapper"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"global\/framework\/common\/ui\/ips.ui.editorv5.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.iconpicker.js",
|
||||
"global\/front\/controllers\/core\/ips.core.commentFeed.js",
|
||||
"core\/front\/controllers\/streams\/ips.streams.main.js",
|
||||
"global\/framework\/templates\/ips.core.templates.js"
|
||||
],
|
||||
"removed": [
|
||||
"core\/front\/controllers\/core\/ips.core.onlineUsersWidget.js"
|
||||
]
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"editor_r__fa_icons",
|
||||
"editor_r__native_emoji",
|
||||
"editor_r__custom_emoji",
|
||||
"editor_r__custom_emoji__desc",
|
||||
"editor_attach_desc_small",
|
||||
"editor_attach_desc_large",
|
||||
"can_edit_tags"
|
||||
],
|
||||
"edited": [
|
||||
"reindexing_single_item_reviews",
|
||||
"search_method_elastic",
|
||||
"search_method_elastic_desc",
|
||||
"search_elastic_server",
|
||||
"search_elastic_server_desc",
|
||||
"search_elastic_server_no_version",
|
||||
"search_elastic_server_error",
|
||||
"search_elastic_index",
|
||||
"cookies_change_text",
|
||||
"acp_notifications_cannot_use_web_push"
|
||||
],
|
||||
"removed": [
|
||||
"editor_attach_drag",
|
||||
"editor_attach_choose_drag",
|
||||
"editor_attach_choose_nodrag"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [
|
||||
"iconpicker_error_fatal",
|
||||
"iconpicker_selected_icons",
|
||||
"iconpicker_submit"
|
||||
],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "dropTable",
|
||||
"params": [
|
||||
"core_theme_conflict",
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [
|
||||
"front\/global\/navBarInitialStyle"
|
||||
],
|
||||
"edited": [
|
||||
"global\/forms\/editorAttachments",
|
||||
"front\/forms\/row",
|
||||
"front\/forms\/template",
|
||||
"front\/global\/globalTemplate",
|
||||
"global\/global\/includeJS",
|
||||
"front\/global\/navBar",
|
||||
"front\/global\/navBarItems",
|
||||
"global\/members\/ipLookup",
|
||||
"front\/messaging\/template",
|
||||
"front\/modcp\/alertRow",
|
||||
"front\/modcp\/deletedRows",
|
||||
"front\/streams\/filterForm",
|
||||
"front\/streams\/filterFormClubs",
|
||||
"front\/streams\/filterFormContentTypeContent",
|
||||
"front\/streams\/filterFormShowMe",
|
||||
"front\/streams\/filterInlineForm",
|
||||
"front\/streams\/streamWrapper",
|
||||
"front\/system\/notificationSettingsType",
|
||||
"front\/system\/reauthenticate",
|
||||
"front\/system\/settings",
|
||||
"front\/system\/settingsEmail",
|
||||
"front\/system\/settingsMfaPassword",
|
||||
"front\/system\/settingsPassword",
|
||||
"front\/themeeditor\/themeEditorTemplate",
|
||||
"front\/widgets\/activeUsers",
|
||||
"front\/widgets\/builderWrapper",
|
||||
"front\/widgets\/whosOnline"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"admin\/core\/zzz-admin-only.css",
|
||||
"global\/framework\/3-badges.css",
|
||||
"global\/framework\/3-boxes.css",
|
||||
"global\/framework\/3-buttons.css",
|
||||
"global\/framework\/3-carousel.css",
|
||||
"global\/framework\/3-compose.css",
|
||||
"global\/framework\/3-cover-photo.css",
|
||||
"global\/framework\/3-data-tables.css",
|
||||
"global\/framework\/3-editor.css",
|
||||
"global\/framework\/3-entries.css",
|
||||
"global\/framework\/3-forms.css",
|
||||
"global\/framework\/3-iconpicker.css",
|
||||
"global\/framework\/3-images.css",
|
||||
"global\/framework\/3-menus.css",
|
||||
"global\/framework\/3-popup.css",
|
||||
"global\/framework\/3-tables.css",
|
||||
"global\/framework\/4-header.css",
|
||||
"front\/styles\/modcp.css",
|
||||
"front\/styles\/streams.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"categories": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"lightDarkMode",
|
||||
"logos",
|
||||
"pageLayouts",
|
||||
"typography",
|
||||
"header",
|
||||
"sidePanel",
|
||||
"content",
|
||||
"footer",
|
||||
"mobileNavigation",
|
||||
"navigationPanel",
|
||||
"global",
|
||||
"textLogo",
|
||||
"imageLogoDesktop",
|
||||
"imageLogoMobile",
|
||||
"desktopHeader",
|
||||
"mobileHeader",
|
||||
"desktopFooter",
|
||||
"body",
|
||||
"contentBoxes",
|
||||
"sidebar",
|
||||
"avatars",
|
||||
"buttons"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"settings": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"set__i-default-scheme",
|
||||
"set__i-logo-text",
|
||||
"set__i-sidebar-width",
|
||||
"i-primary-button--co",
|
||||
"set__i-mobile-icons-location",
|
||||
"set__logo-light",
|
||||
"i-footer--co",
|
||||
"set__mobile-logo-light",
|
||||
"layout_global_view_mode",
|
||||
"set__i-font-family",
|
||||
"set__i-design-border",
|
||||
"set__i-layout-width",
|
||||
"set__i-sidebar-ui-header--he",
|
||||
"set__i-position-logo",
|
||||
"set__i-mobile-header--he",
|
||||
"set__i-change-scheme",
|
||||
"set__i-logo-slogan",
|
||||
"i-primary-button--ba-co",
|
||||
"set__i-mobile-footer-labels",
|
||||
"set__logo-dark",
|
||||
"i-footer--ba-co",
|
||||
"set__mobile-logo-dark",
|
||||
"set__i-design-radius",
|
||||
"set__i-font-size",
|
||||
"set__i-flip-sidebar",
|
||||
"i-dashHeader--ba-co",
|
||||
"set__i-position-navigation",
|
||||
"i-headerMobile--ba-co",
|
||||
"i-headerMobile--co",
|
||||
"i-secondary-button--co",
|
||||
"set__i-logo--fo-fa",
|
||||
"set__i-position-user",
|
||||
"i-dashHeader--co",
|
||||
"set__i-avatar-radius",
|
||||
"i-color_root",
|
||||
"set__i-mobile-logo--he",
|
||||
"set__i-design-shadow",
|
||||
"i-mobileFooter--ba-co",
|
||||
"set__i-logo--he",
|
||||
"i-secondary-button--ba-co",
|
||||
"set__i-logo--fo-we",
|
||||
"i-navPanelLinkHover--co",
|
||||
"set__i-position-breadcrumb",
|
||||
"i-mobileFooter--co",
|
||||
"i-color_soft",
|
||||
"i-body--ba-co",
|
||||
"set__i-link-panels",
|
||||
"set__i-sidebar-ui-logo--he",
|
||||
"i-button--bo-ra",
|
||||
"set__i-desktop-logo--fo-si",
|
||||
"set__i-sticky-sidebar",
|
||||
"i-navPanelLinkActive--ba-co",
|
||||
"set__i-position-search",
|
||||
"i-mobileFooter-active--co",
|
||||
"i-color_hard",
|
||||
"i-box--ba-co",
|
||||
"set__i-header-primary--he",
|
||||
"set__i-sidebar-ui-logo--fo-si",
|
||||
"i-box--bo-co",
|
||||
"i-link--co",
|
||||
"i-mobileFooter-active--ba-co",
|
||||
"i-navPanel--ba-co",
|
||||
"set__i-mobile-logo--fo-si",
|
||||
"i-link-hover--co",
|
||||
"i-navPanel--co",
|
||||
"set__i-header-secondary--he",
|
||||
"i-boxHeader--ba-co",
|
||||
"i-boxHeader--co",
|
||||
"set__i-user-content-font-size",
|
||||
"i-navPanelLinkActive--co",
|
||||
"set__i-nav-bar-icons",
|
||||
"i-widget-header--ba-co",
|
||||
"i-headerTop--ba-co",
|
||||
"i-widget-header--co",
|
||||
"i-headerTop--co",
|
||||
"i-headerPrimary--ba-co",
|
||||
"i-headerPrimary--co",
|
||||
"i-headerSecondary--ba-co",
|
||||
"i-headerSecondary--co",
|
||||
"set__i-header-top--he"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* @brief 5.0.3 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 19 Feb 2025
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_5000057;
|
||||
|
||||
use IPS\Content;
|
||||
use IPS\Db;
|
||||
use function class_exists;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 5.0.3 Upgrade Code
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
*
|
||||
* @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 finish() : bool|array
|
||||
{
|
||||
/* Loop through promoted content and make sure the "featured" flag is properly set.
|
||||
This can happen if content was promoted in v4.
|
||||
Do it by content type so that we can bulk-update */
|
||||
$types = iterator_to_array(
|
||||
Db::i()->select( 'distinct promote_class', 'core_content_promote' )
|
||||
);
|
||||
|
||||
foreach( $types as $class )
|
||||
{
|
||||
if ( ! class_exists( $class ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
/* @var Content $class */
|
||||
if( isset( $class::$databaseColumnMap['featured'] ) )
|
||||
{
|
||||
/* Get all the IDs and update them all at once */
|
||||
Db::i()->update( $class::$databaseTable, [ $class::$databasePrefix . $class::$databaseColumnMap['featured'] => 1 ], [
|
||||
[ $class::$databasePrefix . $class::$databaseColumnId . ' IN (?)',
|
||||
Db::i()->select( 'promote_class_id', 'core_content_promote', [ 'promote_class=?', $class ] ) ]
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
Reference in new issue
Block a user