--- kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php.orig Fri Sep 16 12:43:16 2005 +++ kernel/classes/workflowtypes/event/ezpaymentgateway/ezpaymentgatewaytype.php Fri Sep 16 12:48:27 2005 @@ -188,7 +188,19 @@ function loadAndRegisterBuiltInGateways() { $gatewaysINI =& eZINI::instance( 'paymentgateways.ini' ); - $gatewaysDir = $gatewaysINI->variable( 'GatewaysSettings', 'GatewaysDerictories' ); + $gatewaysDir = false; + // GatewaysDirectories was spelt as GatewaysDerictories, which is + // confusing for people writing ini files - it looks like a typo. + // We look for a correct spelling first, then fall back to the + // original behaviour if we've kept the typo. + if ($gatewaysINI->hasVariable( 'GatewaysSettings', 'GatewaysDirectories' )) + { + $gatewaysDir = $gatewaysINI->variable( 'GatewaysSettings', 'GatewaysDirectories' ); + } + else + { + $gatewaysDir = $gatewaysINI->variable( 'GatewaysSettings', 'GatewaysDerictories' ); + } $gatewaysTypes = $gatewaysINI->variable( 'GatewaysSettings', 'AvailableGateways' ); foreach( $gatewaysDir as $dir )