aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-20 18:30:02 -0700
committerfriendica <info@friendica.com>2012-05-20 18:30:02 -0700
commitafaf9ec74fe0662de76deabd11d630f871802579 (patch)
tree58e41106d72d5b76e00de9cf82a00ef82b6edd77 /boot.php
parentf16a1199408d167bbc7c52dc408ef02b36808317 (diff)
downloadvolse-hubzilla-afaf9ec74fe0662de76deabd11d630f871802579.tar.gz
volse-hubzilla-afaf9ec74fe0662de76deabd11d630f871802579.tar.bz2
volse-hubzilla-afaf9ec74fe0662de76deabd11d630f871802579.zip
rev update
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php21
1 files changed, 20 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index f56a70319..4b4788dbd 100644
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
-define ( 'FRIENDICA_VERSION', '3.0.1347' );
+define ( 'FRIENDICA_VERSION', '3.0.1348' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1144 );
@@ -1323,6 +1323,25 @@ if(! function_exists('proc_run')) {
$a = get_app();
$args = func_get_args();
+
+ $newargs = array();
+ if(! count($args))
+ return;
+
+ // expand any arrays
+
+ foreach($args as $arg) {
+ if(is_array($arg)) {
+ foreach($arg as $n) {
+ $newargs[] = $n;
+ }
+ }
+ else
+ $newargs[] = $arg;
+ }
+
+ $args = $newargs;
+
$arr = array('args' => $args, 'run_cmd' => true);
call_hooks("proc_run", $arr);