Plugin Directory

Changeset 2242964


Ignore:
Timestamp:
02/12/2020 09:33:54 AM (6 years ago)
Author:
targetsms
Message:

Plugin update v17

Location:
aomailer/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • aomailer/trunk/aomailer_plugin.php

    r2209097 r2242964  
    44Plugin URI: https://targetsms.ru/otpravka-sms-iz-wordpress-woocommerce
    55Author: TargetSMS
    6 Version: 1.0.16
     6Version: 1.0.17
    77Author URI: https://targetsms.ru/
    88Description: С помощью плагина "TargetSMS.ru: СМС/Email-рассылки и уведомления" Вы можете отправлять произвольные СМС-рассылки и автоматические СМС и Email-уведомления о статусах заказов администраторам и покупателям интернет-магазина, работающего на платформе WordPress WooCommerce.
  • aomailer/trunk/includes/AomailerDB.php

    r2116232 r2242964  
    271271                }
    272272            }
    273            
     273
    274274            $option = self::select_option(['param_name'=>'admin_template_settings']);
    275275            if (!empty($option)) {
     
    345345            }
    346346        }
    347 
    348         try {
    349             $wpdb->update($table_name, $params, $condition);
     347       
     348        if ($wpdb->last_error) {
     349            error_log($wpdb->last_error."\r\n".PHP_EOL, 3, dirname(__FILE__).'/log.log');
     350            return false; 
     351        } else {
     352            error_log(serialize($params)."\r\n".PHP_EOL, 3, dirname(__FILE__).'/log.log');
    350353            return true;
    351         } catch (Exception $e) {
    352             return false;   // $e->getMessage();   
    353         }
     354        }
    354355    }
    355356   
     
    382383        }
    383384           
    384         try {
    385             $wpdb->insert($table_name, $params);
     385        if ($wpdb->last_error) {
     386            error_log($wpdb->last_error."\r\n".PHP_EOL, 3, dirname(__FILE__).'/log.log');
     387            return false;
     388        } else {
     389            error_log(serialize($params)."\r\n".PHP_EOL, 3, dirname(__FILE__).'/log.log');
    386390            return true;
    387         } catch (Exception $e) {
    388             return false;   // $e->getMessage();   
    389         }
     391        }
    390392    }
    391393   
  • aomailer/trunk/readme.txt

    r2209097 r2242964  
    55Tested up to: 7.3.10
    66Requires PHP: 5.2
    7 Stable tag: 1.0.16
     7Stable tag: 1.0.17
    88
    99TargetSMS.ru: СМС/Email-рассылки и уведомления
  • aomailer/trunk/views/sms_page/__sms_templates.php

    r2114178 r2242964  
    4949                    });
    5050                }
     51               
     52                console.log(form_data)
    5153   
    5254                reloadForm('smstemplates', token, form_data, '<?=admin_url()?>');
Note: See TracChangeset for help on using the changeset viewer.