Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 10, 2022
2 parents 8542169 + 0a7e5f1 commit ccacc52
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
8 changes: 7 additions & 1 deletion src/MicroweberPackages/App/functions/plupload.php
Expand Up @@ -149,7 +149,13 @@
$is_ext = strtolower($is_ext);

switch ($is_ext) {
case 'php':
case 'php':
case 'php12':
case 'php11':
case 'php10':
case 'php9':
case 'php8':
case 'php7':
case 'php5':
case 'php4':
case 'php3':
Expand Down
Expand Up @@ -148,7 +148,7 @@ public function upload(Request $request)
);
}

$src = str_replace('..',false,$src);
$src = str_replace('..','',$src);

$checkFile = url2dir(trim($src));
$checkFile = normalize_path($checkFile, false);
Expand Down
Expand Up @@ -154,7 +154,7 @@ public function upload(Request $request)
'error' => 'You have not provided src to the file.'
);
}

$src = str_replace('..','',$src);
$checkFile = url2dir(trim($src));

$backupLocation = backup_location();
Expand Down
Expand Up @@ -154,7 +154,7 @@ public function upload(Request $request)
'error' => 'You have not provided src to the file.'
);
}

$src = str_replace('..','',$src);
$checkFile = url2dir(trim($src));

$backupLocation = backup_location();
Expand Down
3 changes: 3 additions & 0 deletions tests/Browser/AdminAddCategoryTest.php
Expand Up @@ -36,6 +36,9 @@ public function testAddCategory()
$browser->validate();
});

$browser->pause(1000);
$browser->waitForText('Category name');

$browser->type('#content-title-field', $categoryTitle);

$browser->click('#category-dropdown-holder');
Expand Down
14 changes: 6 additions & 8 deletions tests/Browser/CheckoutCartTest.php
Expand Up @@ -29,8 +29,8 @@ public function testSubmit()
$browser->pause(1000);

$browser->radio('payment_gw', 'shop/payments/gateways/bank_transfer');
$browser->pause(3000);

$browser->pause(3000);
$browser->script("$('html, body').animate({ scrollTop: $('.js-finish-your-order').first().offset().top - 60 }, 0);");
$browser->pause(3000);

Expand Down Expand Up @@ -70,10 +70,6 @@ public function testSubmit()
public function testCheckoutWithPaypal()
{





$siteUrl = $this->siteUrl;

// enable paypal
Expand Down Expand Up @@ -108,14 +104,16 @@ public function testCheckoutWithPaypal()

$this->_browserToCheckoutAndFillShippingInfo($browser, $uniqueId);

$browser->pause(4000);
$browser->script("$('html, body').animate({ scrollTop: $('.js-finish-your-order').first().offset().top - 60 }, 0);");
$browser->pause(3000);


$browser->radio('payment_gw', 'shop/payments/gateways/paypal');
$browser->pause(1000);


try {

$browser->click('.js-checkout-continue')->waitForText('Please wait', 15);
$browser->click('.js-finish-your-order')->waitForText('Please wait', 15);
} catch (\Facebook\WebDriver\Exception\WebDriverCurlException $e) {

$this->markTestSkipped('Paypal is not available');
Expand Down
8 changes: 4 additions & 4 deletions userfiles/modules/slider/index.php
Expand Up @@ -106,14 +106,14 @@
controls: <?php print $controls ? $controls : 'undefined'; ?>,
infiniteLoop: <?php print $loop ? $loop : 'undefined'; ?>,
adaptiveHeight: <?php print $adaptiveHeight ? $adaptiveHeight : 'undefined'; ?>,
auto: '<?php print $autoplay ? $autoplay : 'undefined'; ?>',
auto: <?php print $autoplay ? $autoplay : 'false'; ?>,
autoHover: '<?php print $pauseOnHover ? $pauseOnHover : 'undefined'; ?>',
pause: '<?php print $autoplaySpeed ? $autoplaySpeed : '3000'; ?>',
hideControlOnEnd: <?php print $hideControlOnEnd ? $hideControlOnEnd : 'undefined'; ?>,
mode: '<?php print $mode ? $mode : 'undefined'; ?>',
prevText: '<?php print $prevText ? $prevText : 'undefined'; ?>',
nextText: '<?php print $nextText ? $nextText : 'undefined'; ?>',
touchEnabled: <?php print $touchEnabled ? $touchEnabled : 'undefined'; ?>,
prevText: '<?php print $prevText ? $prevText : ''; ?>',
nextText: '<?php print $nextText ? $nextText : ''; ?>',
touchEnabled: <?php print $touchEnabled ? $touchEnabled : 'true'; ?>,
captions: true,
onSliderLoad: function () {
mw.trigger("mw.bxslider.onSliderLoad");
Expand Down
1 change: 1 addition & 0 deletions userfiles/modules/slider/options.php
Expand Up @@ -119,6 +119,7 @@
}

$autoplay = get_module_option('autoplay', $params['id']);

if ($autoplay) {
$autoplay = $autoplay;
} elseif (isset($params['autoplay'])) {
Expand Down

0 comments on commit ccacc52

Please sign in to comment.