diff options
author | zottel <github@zottel.net> | 2012-05-22 08:46:02 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-05-22 08:46:02 +0200 |
commit | e9c86c0fd0fb87b49e60669e6d4be810ca426ec4 (patch) | |
tree | cfee80cc9122974a4304591aa7d54ca5fc8a71ea /boot.php | |
parent | 2cd3ec7b983327f8c162845d0f4b8d9753f30e27 (diff) | |
parent | 02502c3a7460a1af3414b65232fd7c672a76d941 (diff) | |
download | volse-hubzilla-e9c86c0fd0fb87b49e60669e6d4be810ca426ec4.tar.gz volse-hubzilla-e9c86c0fd0fb87b49e60669e6d4be810ca426ec4.tar.bz2 volse-hubzilla-e9c86c0fd0fb87b49e60669e6d4be810ca426ec4.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -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.1349' ); 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); |