equal
deleted
inserted
replaced
121 |
121 |
122 // Are we processing an AJAX request from the smartform? |
122 // Are we processing an AJAX request from the smartform? |
123 if ( $paths->getParam(0) == 'action.json' ) |
123 if ( $paths->getParam(0) == 'action.json' ) |
124 { |
124 { |
125 // Set to application/json to discourage advertisement scripts |
125 // Set to application/json to discourage advertisement scripts |
126 header('Content-Type: application/json'); |
126 header('Content-Type: text/javascript'); |
127 |
127 |
128 // Init return data |
128 // Init return data |
129 $return = array('mode' => 'error', 'error' => 'undefined'); |
129 $return = array('mode' => 'error', 'error' => 'undefined'); |
130 |
130 |
131 // Start parsing process |
131 // Start parsing process |