From 1f313eba500e7fa78dd2a6062856aa5f755a300c Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 22 Jul 2012 05:13:29 -0700 Subject: upstream fixes --- boot.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index a78ac2cfe..f8966e8fe 100644 --- a/boot.php +++ b/boot.php @@ -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]; +} -- cgit v1.2.3