Default to Low bandwidth in API if not set
This commit is contained in:
parent
a71e291331
commit
a7d32a2cd7
|
@ -188,7 +188,7 @@ class EventsController extends AppController {
|
|||
// Get the config options required for reScale and getImageSrc
|
||||
// The $bw, $thumbs and unset() code is a workaround / temporary
|
||||
// until I have a better way of handing per-bandwidth config options
|
||||
$bw = strtoupper(substr($_COOKIE['zmBandwidth'], 0, 1));
|
||||
$bw = (isset($_COOKIE['zmBandwidth']) ? strtoupper(substr($_COOKIE['zmBandwidth'], 0, 1)) : 'L');
|
||||
$thumbs = "ZM_WEB_${bw}_SCALE_THUMBS";
|
||||
|
||||
$config = $this->Config->find('list', array(
|
||||
|
|
Loading…
Reference in New Issue