Version 4.5.0
This commit is contained in:
1 parent
1a0c7fd3c2
commit
f79dcf067a
3791 files changed
+248032
-76372
No files matched your search
@@ -12,7 +12,7 @@
|
||||
namespace IPS\nexus\setup\upg_101000;
|
||||
|
||||
/* 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,9 +31,9 @@ class _Upgrade
|
||||
public function step1()
|
||||
{
|
||||
\IPS\Settings::i()->changeValues( array(
|
||||
'card_storage_gateways' => count( \IPS\nexus\Gateway::cardStorageGateways() ),
|
||||
'donation_goals' => count( \IPS\nexus\Donation\Goal::roots() ),
|
||||
'customer_fields' => count( \IPS\nexus\Customer\CustomField::roots() )
|
||||
'card_storage_gateways' => \count( \IPS\nexus\Gateway::cardStorageGateways() ),
|
||||
'donation_goals' => \count( \IPS\nexus\Donation\Goal::roots() ),
|
||||
'customer_fields' => \count( \IPS\nexus\Customer\CustomField::roots() )
|
||||
) );
|
||||
return TRUE;
|
||||
}
|
||||
@@ -167,7 +167,7 @@ class _Upgrade
|
||||
|
||||
$offset = isset( \IPS\Request::i()->extra ) ? \IPS\Request::i()->extra : 0;
|
||||
$select = \IPS\Db::i()->select( '*', 'nexus_shipping', NULL, 's_id', array( $offset, 100 ) );
|
||||
if ( count( $select ) )
|
||||
if ( \count( $select ) )
|
||||
{
|
||||
foreach ( $select as $row )
|
||||
{
|
||||
@@ -189,18 +189,18 @@ class _Upgrade
|
||||
break;
|
||||
// Invoice subtotal
|
||||
case 't':
|
||||
$min = array( \IPS\Settings::i()->nexus_currency => floatval( $value['value'] ) );
|
||||
$min = array( \IPS\Settings::i()->nexus_currency => \floatval( $value['value'] ) );
|
||||
break;
|
||||
// Total weight of items
|
||||
case 'w':
|
||||
$min = floatval( $value['value'] );
|
||||
$min = \floatval( $value['value'] );
|
||||
break;
|
||||
}
|
||||
|
||||
$decoded[ $k ] = array(
|
||||
'min' => $min,
|
||||
'max' => isset( $decoded[ $k + 1 ] ) ? array( \IPS\Settings::i()->nexus_currency => floatval( $decoded[ $k + 1 ]['value'] ) ) : '*',
|
||||
'price' => array( \IPS\Settings::i()->nexus_currency => floatval( $value['cost'] ) )
|
||||
'max' => isset( $decoded[ $k + 1 ] ) ? array( \IPS\Settings::i()->nexus_currency => \floatval( $decoded[ $k + 1 ]['value'] ) ) : '*',
|
||||
'price' => array( \IPS\Settings::i()->nexus_currency => \floatval( $value['cost'] ) )
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -224,7 +224,7 @@ class _Upgrade
|
||||
{
|
||||
foreach ( $locations as $i => $location )
|
||||
{
|
||||
if ( !in_array( $location, \IPS\GeoLocation::$states[ $countryCode ] ) )
|
||||
if ( !\in_array( $location, \IPS\GeoLocation::$states[ $countryCode ] ) )
|
||||
{
|
||||
if ( $key = array_search( $location, $statesFrom3[ $countryCode ] ) )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user