Plugin Directory

Changeset 2486768


Ignore:
Timestamp:
03/04/2021 12:15:41 PM (5 years ago)
Author:
ipag
Message:

Nova versão 2.1.2 (Adicionado Melhorias)

Location:
ipag-woocommerce
Files:
5 edited
25 copied

Legend:

Unmodified
Added
Removed
  • ipag-woocommerce/tags/2.1.2/classes/ipag-gateway-pix.php

    r2480737 r2486768  
    119119            $args = $this->getOrderData($order);
    120120
    121             $qr = new QrCode();
    122             $qr->setText($qrCode);
    123             $qr->setSize(200);
    124             $image = $qr->get('png');
    125             $data = 'data:png;base64,'.base64_encode($image);
    126 
     121            if (!empty($qrCode)) {
     122                $qr = new QrCode();
     123                $qr->setText($qrCode);
     124                $qr->setSize(200);
     125                $image = $qr->get('png');
     126                $data = 'data:png;base64,'.base64_encode($image);
     127            }
     128           
    127129            if (!empty($urlPix)) {
    128130?>
  • ipag-woocommerce/tags/2.1.2/ipag-gateway.php

    r2480790 r2486768  
    66 * Author URI:     mailto:suporte@ipag.com.br
    77 * Plugin URI:     http://www.ipag.com.br/
    8  * Version:     2.1.1
     8 * Version:     2.1.2
    99 * Text Domain: ipag-woocommerce
    1010 * Domain Path: /languages/
     
    2121{
    2222
    23         const IPAG_VERSION = '2.1.1';
     23        const IPAG_VERSION = '2.1.2';
    2424        protected static $instance = null;
    2525
  • ipag-woocommerce/tags/2.1.2/libs/endroid-qr-code/autoload.php

    r2480737 r2486768  
    22
    33spl_autoload_register(function ($className) {
    4     $base_dir = __DIR__.'/src/';
     4    $base_dir = __DIR__;
     5    $dirs = [
     6        '/src/',
     7        '/src/Bundle/',
     8        '/src/Bundle/Controller/',
     9        '/src/Bundle/DependencyInjection/',
     10        '/src/Bundle/Twig/Extension/',
     11        '/src/Exceptions/',
     12        '/src/Factory/',
     13    ];
    514
    6     $namespace = str_replace("\\", "/", __NAMESPACE__);
    715    $path = explode('\\', $className);
    816    $className = array_pop($path);
    9     $class = $base_dir."/{$className}.php";
    10 
    11     if (file_exists($class)) {
    12         require_once ($class);
     17   
     18    foreach ($dirs as $dir) {
     19        $class = $base_dir.$dir."/{$className}.php";
     20        if (file_exists($class)) {
     21            require_once($class);
     22        }
    1323    }
    1424});
  • ipag-woocommerce/tags/2.1.2/readme.txt

    r2480790 r2486768  
    55Tested up to: 5.6
    66Requires PHP: 7.0
    7 Stable tag: 2.1.1
     7Stable tag: 2.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29= 2.1.2 =
     30* Fix: Endroid autoload
     31
    2932= 2.1.1 =
    3033* Hotfix
  • ipag-woocommerce/trunk/classes/ipag-gateway-pix.php

    r2480737 r2486768  
    119119            $args = $this->getOrderData($order);
    120120
    121             $qr = new QrCode();
    122             $qr->setText($qrCode);
    123             $qr->setSize(200);
    124             $image = $qr->get('png');
    125             $data = 'data:png;base64,'.base64_encode($image);
    126 
     121            if (!empty($qrCode)) {
     122                $qr = new QrCode();
     123                $qr->setText($qrCode);
     124                $qr->setSize(200);
     125                $image = $qr->get('png');
     126                $data = 'data:png;base64,'.base64_encode($image);
     127            }
     128           
    127129            if (!empty($urlPix)) {
    128130?>
  • ipag-woocommerce/trunk/ipag-gateway.php

    r2480790 r2486768  
    66 * Author URI:     mailto:suporte@ipag.com.br
    77 * Plugin URI:     http://www.ipag.com.br/
    8  * Version:     2.1.1
     8 * Version:     2.1.2
    99 * Text Domain: ipag-woocommerce
    1010 * Domain Path: /languages/
     
    2121{
    2222
    23         const IPAG_VERSION = '2.1.1';
     23        const IPAG_VERSION = '2.1.2';
    2424        protected static $instance = null;
    2525
  • ipag-woocommerce/trunk/libs/endroid-qr-code/autoload.php

    r2480737 r2486768  
    22
    33spl_autoload_register(function ($className) {
    4     $base_dir = __DIR__.'/src/';
     4    $base_dir = __DIR__;
     5    $dirs = [
     6        '/src/',
     7        '/src/Bundle/',
     8        '/src/Bundle/Controller/',
     9        '/src/Bundle/DependencyInjection/',
     10        '/src/Bundle/Twig/Extension/',
     11        '/src/Exceptions/',
     12        '/src/Factory/',
     13    ];
    514
    6     $namespace = str_replace("\\", "/", __NAMESPACE__);
    715    $path = explode('\\', $className);
    816    $className = array_pop($path);
    9     $class = $base_dir."/{$className}.php";
    10 
    11     if (file_exists($class)) {
    12         require_once ($class);
     17   
     18    foreach ($dirs as $dir) {
     19        $class = $base_dir.$dir."/{$className}.php";
     20        if (file_exists($class)) {
     21            require_once($class);
     22        }
    1323    }
    1424});
  • ipag-woocommerce/trunk/readme.txt

    r2480790 r2486768  
    55Tested up to: 5.6
    66Requires PHP: 7.0
    7 Stable tag: 2.1.1
     7Stable tag: 2.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2727
    2828== Changelog ==
     29= 2.1.2 =
     30* Fix: Endroid autoload
     31
    2932= 2.1.1 =
    3033* Hotfix
Note: See TracChangeset for help on using the changeset viewer.