Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
e9c25faa34
|
@ -96,7 +96,7 @@ $pages = array(
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'label' => 'User Manual',
|
'label' => 'User Manual',
|
||||||
'uri' => "http://manuals.sourcefabric.org/",
|
'uri' => "http://www.sourcefabric.org/en/airtime/manuals/",
|
||||||
'target' => "_blank"
|
'target' => "_blank"
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -175,7 +175,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
/**
|
/**
|
||||||
* Retrieve the currently playing show as well as upcoming shows.
|
* Retrieve the currently playing show as well as upcoming shows.
|
||||||
* Number of shows returned and the time interval in which to
|
* Number of shows returned and the time interval in which to
|
||||||
* get the next shows can be configured as post parameters.
|
* get the next shows can be configured as GET parameters.
|
||||||
*
|
*
|
||||||
* TODO: in the future, make interval length a parameter instead of hardcode to 48
|
* TODO: in the future, make interval length a parameter instead of hardcode to 48
|
||||||
*
|
*
|
||||||
|
@ -206,7 +206,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$limit = $request->getParam('limit');
|
$limit = $request->getParam('limit');
|
||||||
if($limit == "") {
|
if($limit == "" || !is_numeric($limit)) {
|
||||||
$limit = "5";
|
$limit = "5";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue