Fixed function call names for renamed functions.
This commit is contained in:
parent
674f08e210
commit
b5f2262b0a
2 changed files with 5 additions and 4 deletions
|
@ -24,7 +24,7 @@ echo"# storeWebstream: "; $r = $gb->storeWebstream(
|
|||
$parid, 'test stream', $mdataFileLP, $sessid, $gunid, 'http://localhost/y');
|
||||
if(PEAR::isError($r)){ echo "ERROR: ".$r->getMessage()." ".$r->getUserInfo()."\n"; exit(1); }
|
||||
echo ""; var_dump($r);
|
||||
#$id = $gb->_idFromGunid($gunid);
|
||||
#$id = $gb->idFromGunid($gunid);
|
||||
$id = $r;
|
||||
|
||||
echo"# getMdata: "; $r = $gb->getMdata($id, $sessid);
|
||||
|
|
|
@ -69,7 +69,7 @@ if($dbc->isError($ac)){
|
|||
http_error(500, "500 ".$ac->getMessage());
|
||||
}
|
||||
}
|
||||
$lid = $locStor->_idFromGunid($gunid);
|
||||
$lid = $locStor->idFromGunid($gunid);
|
||||
if($dbc->isError($lid)){ http_error(500, $lid->getMessage()); }
|
||||
if(($res = $locStor->_authorize('read', $lid, $sessid)) !== TRUE){
|
||||
http_error(403, "403 Access denied");
|
||||
|
@ -86,8 +86,9 @@ switch($ftype){
|
|||
break;
|
||||
case"webstream":
|
||||
$url = $locStor->bsGetMetadataValue($lid, 'ls:url');
|
||||
if(PEAR::isError($url)){ http_error(500, $url->getMessage()); }
|
||||
$url = $url[0]['value'];
|
||||
if (empty($url)) {
|
||||
http_error(500, "Unable to get ls:url value");
|
||||
}
|
||||
$txt = "Location: $url";
|
||||
header($txt);
|
||||
// echo "$txt\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue