upstream fixes

This commit is contained in:
friendica
2012-07-22 05:13:29 -07:00
parent 236ba8badc
commit 1f313eba50
3 changed files with 608 additions and 407 deletions

View File

@@ -1687,3 +1687,14 @@ function build_querystring($params, $name=null) {
}
return $ret;
}
// much better way of dealing with c-style args
function argc() {
return get_app()->argc;
}
function argv($x) {
return get_app()->argv[$x];
}