forked from GNUsocial/gnu-social
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
This commit is contained in:
18
lib/api.php
18
lib/api.php
@@ -1322,4 +1322,22 @@ class ApiAction extends Action
|
||||
}
|
||||
}
|
||||
|
||||
function getSelfUri($action, $aargs)
|
||||
{
|
||||
parse_str($_SERVER['QUERY_STRING'], $params);
|
||||
$pstring = '';
|
||||
if (!empty($params)) {
|
||||
unset($params['p']);
|
||||
$pstring = http_build_query($params);
|
||||
}
|
||||
|
||||
$uri = common_local_url($action, $aargs);
|
||||
|
||||
if (!empty($pstring)) {
|
||||
$uri .= '?' . $pstring;
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user