Version 4.1.19

This commit is contained in:
Neo committed 2025-12-19 05:38:56 -08:00
1 parent 28bd025b35
commit 2bd5025018
2674 files changed
+233518 -77766

No files matched your search

+13 -7
View File
@@ -2,9 +2,9 @@
/**
* @brief Application Developer Class
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - SVN_YYYY Invision Power Services, Inc.
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Social Suite
* @package IPS Community Suite
* @since 17 October 2013
* @version SVN_VERSION_NUMBER
*/
@@ -24,10 +24,14 @@ if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
class _Developer
{
/* [Brief] Array of directories that should always be present inside /dev */
/**
* @brief Array of directories that should always be present inside /dev
*/
protected static $devDirs = array( 'css', 'email', 'html', 'img', 'js' );
/* [Brief] Array of multitons */
/**
* @brief Array of multitons
*/
protected static $multitons = array();
/**
@@ -186,16 +190,16 @@ class _Developer
if ( \IPS\Db::i()->checkForTable( $q['params'][0] ) )
{
/* Does the column exist already? */
if ( \IPS\DB::i()->checkForColumn( $q['params'][0], $q['params'][2]['name'] ) )
if ( \IPS\Db::i()->checkForColumn( $q['params'][0], $q['params'][2]['name'] ) )
{
/* Just make sure it's up to date */
\IPS\DB::i()->changeColumn( $q['params'][0], $q['params'][2]['name'], $q['params'][2] );
\IPS\Db::i()->changeColumn( $q['params'][0], $q['params'][2]['name'], $q['params'][2] );
continue;
}
else
{
/* The table exists, so lets just add the column */
\IPS\DB::i()->addColumn( $q['params'][0], $q['params'][2] );
\IPS\Db::i()->addColumn( $q['params'][0], $q['params'][2] );
continue;
}
@@ -388,6 +392,7 @@ class _Developer
'sc_app' => $this->app->directory,
'sc_title' => $data['sc_title'],
'sc_order' => $data['sc_order'],
'sc_condition' => $data['sc_condition'],
) );
}
else
@@ -402,6 +407,7 @@ class _Developer
'sc_content' => $data['sc_content'],
'sc_title' => $data['sc_title'],
'sc_order' => $data['sc_order'],
'sc_condition' => $data['sc_condition'],
), array( 'sc_set_id=? AND sc_key=? AND sc_app=?', 1, $data['sc_key'], $this->app->directory ) );
$currentId = $currentSettings[ $data['sc_key'] ]['sc_id'];