Version 4.7.0

This commit is contained in:
Neo committed 2025-12-19 16:00:35 -08:00
1 parent 517a5e1f70
commit 8ba7d43898
1933 files changed
+65613 -11332

No files matched your search

+1 -33
View File
@@ -724,39 +724,7 @@ class _Upgrade
*/
public function step14()
{
$max = \IPS\Db::i()->select( 'MAX(set_order)', 'core_themes' )->first();
\IPS\Db::i()->update( 'core_themes', array( 'set_is_acp_default' => 0 ) );
/* Create a default theme */
$theme = new \IPS\Theme;
$theme->parent_array = '[]';
$theme->child_array = '[]';
$theme->parent_id = 0;
$theme->by_skin_gen = 0;
$theme->editor_skin = 'ips';
$theme->order = $max + 1;
$theme->is_default = FALSE;
$theme->is_acp_default = TRUE;
try
{
$theme->save();
$theme->installThemeSettings();
$theme->copyResourcesFromSet();
/* Name */
\IPS\Lang::saveCustom( 'core', "core_theme_set_title_{$theme->id}", "4.2" );
}
catch( \IPS\Db\Exception $e )
{
/* Column does not exist, set_customized was added in 4.3, so may not yet exist */
if( $e->getCode() != 1054 )
{
throw $e;
}
}
/* This step is no longer needed following AdminCP theme changes in 4.5 */
return TRUE;
}