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_101016;
|
||||
|
||||
/* 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;
|
||||
@@ -31,7 +31,7 @@ class _Upgrade
|
||||
{
|
||||
$perCycle = 50;
|
||||
$did = 0;
|
||||
$limit = intval( \IPS\Request::i()->extra );
|
||||
$limit = \intval( \IPS\Request::i()->extra );
|
||||
$cutOff = \IPS\core\Setup\Upgrade::determineCutoff();
|
||||
|
||||
foreach( \IPS\Db::i()->select( '*', 'core_admin_permission_rows', NULL, 'row_id_type,row_id', array( $limit, $perCycle ) ) as $row )
|
||||
@@ -56,7 +56,7 @@ class _Upgrade
|
||||
foreach ( $perms['applications'] as $k => $app )
|
||||
{
|
||||
/* We've stored ACP permissions in different ways - one way was 'app' => array( 'module1', 'module2' ) */
|
||||
if( is_array( $app ) )
|
||||
if( \is_array( $app ) )
|
||||
{
|
||||
$applications[ $k ] = $app;
|
||||
}
|
||||
@@ -109,7 +109,7 @@ class _Upgrade
|
||||
|
||||
$toRun = \IPS\core\Setup\Upgrade::runManualQueries( $toRunQueries );
|
||||
|
||||
if ( count( $toRun ) )
|
||||
if ( \count( $toRun ) )
|
||||
{
|
||||
\IPS\core\Setup\Upgrade::adjustMultipleRedirect( array( 'extra' => array( '_upgradeStep' => 3 ) ) );
|
||||
|
||||
@@ -206,7 +206,7 @@ class _Upgrade
|
||||
{
|
||||
foreach( json_decode( $config, TRUE ) as $k => $v )
|
||||
{
|
||||
if ( mb_substr( $k, 0, 3 ) !== 'key' and is_numeric( $k ) )
|
||||
if ( mb_substr( $k, 0, 3 ) !== 'key' and \is_numeric( $k ) )
|
||||
{
|
||||
$json[ 'key' . $k ] = $v;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user