Commit 5b274bf3 by jenkins

Merge Request accepted by jenkins build success

parents d5b5f598 5affe3c8
Pipeline #556 failed with stage
in 0 seconds
...@@ -42,9 +42,6 @@ add_action( 'edited_vq_course_promo', 'save_course_promo', 10, 2 ); ...@@ -42,9 +42,6 @@ add_action( 'edited_vq_course_promo', 'save_course_promo', 10, 2 );
add_action('wp_ajax_nopriv_check_promo', 'vq_check_promo', 10, 2); add_action('wp_ajax_nopriv_check_promo', 'vq_check_promo', 10, 2);
add_action('wp_ajax_check_promo', 'vq_check_promo', 10, 2); add_action('wp_ajax_check_promo', 'vq_check_promo', 10, 2);
function set_html_content_type(){
return 'text/html';
}
function vq_check_promo() { function vq_check_promo() {
$code = $_POST['data']; $code = $_POST['data'];
...@@ -98,6 +95,10 @@ function save_course_promo($term_id) { ...@@ -98,6 +95,10 @@ function save_course_promo($term_id) {
function vq_lms_process_order() function vq_lms_process_order()
{ {
function set_html_content_type(){
return 'text/html';
}
if (!isset($_POST['data'])) { if (!isset($_POST['data'])) {
echo "Unable to process your request"; echo "Unable to process your request";
die; die;
...@@ -286,8 +287,6 @@ function vq_lms_process_order() ...@@ -286,8 +287,6 @@ function vq_lms_process_order()
$strxml = $strxml . "<signature>" . $_sign . "</signature>"; $strxml = $strxml . "<signature>" . $_sign . "</signature>";
$strxml = $strxml . "</Request>"; $strxml = $strxml . "</Request>";
echo base64_encode($strxml); echo base64_encode($strxml);
die; die;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment