aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-22 05:13:29 -0700
committerfriendica <info@friendica.com>2012-07-22 05:13:29 -0700
commit1f313eba500e7fa78dd2a6062856aa5f755a300c (patch)
treeded3805c7e2319e77cbd51681e570ba7b3fee7f7 /boot.php
parent236ba8badcca39206e5a8595af5c1464bba2863e (diff)
downloadvolse-hubzilla-1f313eba500e7fa78dd2a6062856aa5f755a300c.tar.gz
volse-hubzilla-1f313eba500e7fa78dd2a6062856aa5f755a300c.tar.bz2
volse-hubzilla-1f313eba500e7fa78dd2a6062856aa5f755a300c.zip
upstream fixes
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php11
1 files changed, 11 insertions, 0 deletions
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];
+}