Subversion Repositories SmartDukaan

Rev

Rev 14661 | Rev 17091 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 14661 Rev 14934
Line 61... Line 61...
61
				if ($this->UserUrl->saveAll($pushdata['pushdata'])) {
61
				if ($this->UserUrl->saveAll($pushdata['pushdata'])) {
62
					$result = array('success' => true,'message'=>__('The url has been saved.'));
62
					$result = array('success' => true,'message'=>__('The url has been saved.'));
63
				} else {
63
				} else {
64
					$result = array('success' => false,'message'=>__('The url could not be saved. Please, try again.'));
64
					$result = array('success' => false,'message'=>__('The url could not be saved. Please, try again.'));
65
				}
65
				}
-
 
66
				if(isset($pushdata['pushdata'][0]['httpstatus']) && !empty($pushdata['pushdata'][0]['httpstatus'])) {
-
 
67
					$this->loadModel('SaholicLog');
-
 
68
					$this->SaholicLog->create();
-
 
69
					$this->SaholicLog->saveAll($pushdata['pushdata']);
-
 
70
				}
66
				$this->response->type('json');
71
				$this->response->type('json');
67
				$this->layout = 'ajax';
72
				$this->layout = 'ajax';
68
				$this->set(array(
73
				$this->set(array(
69
				    'result' => $result,
74
				    'result' => $result,
70
				    // 'callback' => $callback,
75
				    // 'callback' => $callback,