Some more improvements

This commit is contained in:
Michael 2017-11-05 15:28:55 +00:00
parent 9039e60a06
commit 70c08dee1d
3 changed files with 31 additions and 19 deletions

View file

@ -22,7 +22,6 @@ require_once(__DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Core\Config;
use Friendica\Util\Lock;
@ -1030,6 +1029,18 @@ function get_max_import_size() {
return ((x($a->config, 'max_import_size')) ? $a->config['max_import_size'] : 0 );
}
/**
* @brief compatibilty wrapper for Worker::add function
*
* @param (integer|array) priority or parameter array, $cmd atrings are deprecated and are ignored
*
* @return boolean "false" if proc_run couldn't be executed
*/
function proc_run() {
$proc_args = func_get_args();
call_user_func_array('Friendica\Core\Worker::add', $proc_args);
}
function current_theme() {
$app_base_themes = array('duepuntozero', 'dispy', 'quattro');