Version 4.7.6

This commit is contained in:
Neo committed 2025-12-19 16:05:19 -08:00
1 parent 8ba7d43898
commit 7b7404e741
1085 files changed
+30590 -7837

No files matched your search

+1 -34
View File
@@ -239,7 +239,7 @@ class _Developer
throw $e;
}
/* If the error isn't important we should ignore it */
else if( !\in_array( $e->getCode(), array( 1007, 1008, 1050, 1060, 1061, 1062, 1091 ) ) )
else if( !\in_array( $e->getCode(), array( 1007, 1008, 1050, 1051, 1060, 1061, 1062, 1091 ) ) )
{
throw $e;
}
@@ -295,39 +295,6 @@ class _Developer
{
$queries = json_decode( file_get_contents( \IPS\ROOT_PATH . "/applications/{$this->app->directory}/setup/upg_{$latestVersion}/queries.json" ), TRUE );
}
/* Sync latest features */
if ( \file_exists( \IPS\ROOT_PATH . "/applications/{$this->app->directory}/setup/upg_{$latestVersion}/whatsnew.json" ) )
{
$data = json_decode( \file_get_contents( \IPS\ROOT_PATH . "/applications/{$this->app->directory}/setup/upg_{$latestVersion}/whatsnew.json" ), TRUE );
if ( \count( $data ) )
{
foreach( $data AS $uid => $row )
{
try
{
$feature = \IPS\Application\Feature::load( $uid, 'feature_unique_key' );
}
catch( \OutOfRangeException $e )
{
$feature = new \IPS\Application\Feature;
}
$feature->title = $row['feature_title'];
$feature->text = $row['feature_text'];
$feature->image = $row['feature_image'];
$feature->url = $row['feature_url'];
$feature->version_added = $row['feature_version_added'];
$feature->app = $row['feature_app'];
$feature->unique_key = $row['feature_unique_key'];
$feature->save();
\IPS\Application\Feature::markRead( \IPS\Member::loggedIn(), $feature );
}
$updated = TRUE;
}
}
}
/* Check for missing tables or columns */