We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c5d4b25 + 7c4187d commit 4dd3308Copy full SHA for 4dd3308
upload/inc/plugins/isango.php
@@ -716,10 +716,12 @@ function isango_gateway_error(string $gateway)
716
function isango_config(string $gateway = "", string $mode = "")
717
{
718
$path = MYBB_ROOT . 'inc/plugins/isango/%s.ini';
719
- $gateways = array();
+ static $gateways = array();
720
721
- foreach (glob(sprintf($path, '*')) as $gate) {
722
- $gateways[] = strtolower(basename($gate, '.ini'));
+ if (empty($gateways)) {
+ foreach (glob(sprintf($path, '*')) as $gate) {
723
+ $gateways[] = strtolower(basename($gate, '.ini'));
724
+ }
725
}
726
727
if (empty($gateway)) {
0 commit comments