|
@@ 131-138 (lines=8) @@
|
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
// Redirects to the phone version and set the 'phone' device view in a cookie. |
| 131 |
|
if ($this->hasPhoneRedirect()) { |
| 132 |
|
if ($response = $this->getDeviceRedirectResponse(self::PHONE)) { |
| 133 |
|
$response->send($this->httpRequest, $this->httpResponse); |
| 134 |
|
exit(); |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
return; |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
// Redirects to the tablet version and set the 'tablet' device view in a cookie. |
| 141 |
|
if ($this->hasTabletRedirect()) { |
|
@@ 141-148 (lines=8) @@
|
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
// Redirects to the tablet version and set the 'tablet' device view in a cookie. |
| 141 |
|
if ($this->hasTabletRedirect()) { |
| 142 |
|
if ($response = $this->getDeviceRedirectResponse(self::TABLET)) { |
| 143 |
|
$response->send($this->httpRequest, $this->httpResponse); |
| 144 |
|
exit(); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
return; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// Redirects to the mobile version and set the 'mobile' device view in a cookie. |
| 151 |
|
if ($this->hasMobileRedirect()) { |
|
@@ 151-158 (lines=8) @@
|
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
// Redirects to the mobile version and set the 'mobile' device view in a cookie. |
| 151 |
|
if ($this->hasMobileRedirect()) { |
| 152 |
|
if ($response = $this->getDeviceRedirectResponse(self::MOBILE)) { |
| 153 |
|
$response->send($this->httpRequest, $this->httpResponse); |
| 154 |
|
exit(); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
return; |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
// No need to redirect |
| 161 |
|
|