mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Some more improvements
This commit is contained in:
parent
9039e60a06
commit
70c08dee1d
3 changed files with 31 additions and 19 deletions
13
boot.php
13
boot.php
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue