@@ -110,8 +110,7 @@ discard block |
||
110 | 110 | Requirements::javascript( 'mysite/javascript/jQuery.js' ); |
111 | 111 | if ( Director::is_ajax() ) { |
112 | 112 | $this->isAjax = true; |
113 | - } |
|
114 | - else { |
|
113 | + } else { |
|
115 | 114 | $this->isAjax = false; |
116 | 115 | } |
117 | 116 | parent::init(); |
@@ -124,8 +123,7 @@ discard block |
||
124 | 123 | |
125 | 124 | if ( $this->isAjax ) { |
126 | 125 | return $this->renderWith( "ContactPageModal" ); |
127 | - } |
|
128 | - else { |
|
126 | + } else { |
|
129 | 127 | return array(); |
130 | 128 | } |
131 | 129 | |
@@ -212,8 +210,7 @@ discard block |
||
212 | 210 | $result['success'] = 1; |
213 | 211 | echo json_encode( $result ); |
214 | 212 | die; |
215 | - } |
|
216 | - else { |
|
213 | + } else { |
|
217 | 214 | Controller::redirect( Director::baseURL(). $this->URLSegment . "/?success=1" ); |
218 | 215 | } |
219 | 216 | } |