Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -11,7 +11,7 @@
|
||||
namespace IPS\core\setup\upg_33000;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
@@ -473,7 +473,7 @@ class _Upgrade
|
||||
ADD INDEX cache_date (cache_date);"
|
||||
) ) );
|
||||
|
||||
if ( count( $toRun ) )
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 3 ) ) );
|
||||
|
||||
@@ -965,7 +965,7 @@ class _Upgrade
|
||||
$memberQueries[] = "DROP COLUMN members_editor_choice";
|
||||
}
|
||||
|
||||
if( count( $memberQueries ) )
|
||||
if( \count( $memberQueries ) )
|
||||
{
|
||||
$queries[] = array( 'table' => 'members', 'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "members " . implode( ', ', $memberQueries ) );
|
||||
}
|
||||
@@ -977,7 +977,7 @@ class _Upgrade
|
||||
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( $queries );
|
||||
|
||||
if ( count( $toRun ) )
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 5 ) ) );
|
||||
|
||||
@@ -997,7 +997,7 @@ class _Upgrade
|
||||
{
|
||||
/* Init */
|
||||
$pergo = 100;
|
||||
$start = intval( \IPS\Request::i()->extra );
|
||||
$start = \intval( \IPS\Request::i()->extra );
|
||||
$did = 0;
|
||||
|
||||
/* Get them */
|
||||
@@ -1090,11 +1090,11 @@ class _Upgrade
|
||||
'wl_points' => ( $row['wlog_type'] == 'neg' ) ? 1 : 0,
|
||||
'wl_note_member' => $noteForMember,
|
||||
'wl_note_mods' => $noteForMods,
|
||||
'wl_mq' => intval( $mq ),
|
||||
'wl_mq' => \intval( $mq ),
|
||||
'wl_mq_unit' => $mqUnit,
|
||||
'wl_rpa' => intval( $rpa ),
|
||||
'wl_rpa' => \intval( $rpa ),
|
||||
'wl_rpa_unit' => $rpaUnit,
|
||||
'wl_suspend' => intval( $suspend ),
|
||||
'wl_suspend' => \intval( $suspend ),
|
||||
'wl_suspend_unit' => $suspendUnit,
|
||||
'wl_ban_group' => 0,
|
||||
'wl_expire' => 0,
|
||||
@@ -1184,14 +1184,14 @@ class _Upgrade
|
||||
$queries[] = array( 'table' => 'posts', 'query' => "ALTER TABLE " . \IPS\Db::i()->prefix . "posts ADD post_field_t2 TEXT NULL DEFAULT NULL;" );
|
||||
}
|
||||
|
||||
if( !count( $queries ) )
|
||||
if( !\count( $queries ) )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( $queries );
|
||||
|
||||
if ( count( $toRun ) )
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 1 => 'core', 'extra' => array( '_upgradeStep' => 9 ) ) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user