namespace Friendica;
use Friendica\Core\System;
+use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
+use Friendica\Database\DBM;
-use Cache;
use dba;
-use dbm;
use Detection\MobileDetect;
public $videowidth = 425;
public $videoheight = 350;
public $force_max_items = 0;
- public $theme_thread_allow = true;
public $theme_events_in_profile = true;
/**
'videowidth' => 425,
'videoheight' => 350,
'force_max_items' => 0,
- 'thread_allow' => true,
'stylesheet' => '',
'template_engine' => 'smarty3',
);
// Register template engines
$dc = get_declared_classes();
foreach ($dc as $k) {
- if (in_array('ITemplateEngine', class_implements($k))) {
+ if (in_array('Friendica\Render\ITemplateEngine', class_implements($k))) {
$this->register_template_engine($k);
}
}
dba::transaction();
$r = q('SELECT `pid` FROM `process` WHERE `pid` = %d', intval(getmypid()));
- if (!dbm::is_result($r)) {
+ if (!DBM::is_result($r)) {
dba::insert('process', array('pid' => getmypid(), 'command' => $command, 'created' => datetime_convert()));
}
dba::commit();
dba::transaction();
$r = q('SELECT `pid` FROM `process`');
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
foreach ($r AS $process) {
if (!posix_kill($process['pid'], 0)) {
- q('DELETE FROM `process` WHERE `pid` = %d', intval($process['pid']));
+ dba::delete('process', array('pid' => $process['pid']));
}
}
}
* @brief Remove the active process from the "process" table
*/
function end_process() {
- q('DELETE FROM `process` WHERE `pid` = %d', intval(getmypid()));
+ dba::delete('process', array('pid' => getmypid()));
}
function get_useragent() {
}
}
- $processlist = dbm::processlist();
+ $processlist = DBM::processlist();
if ($processlist['list'] != '') {
logger('Processcheck: Processes: ' . $processlist['amount'] . ' - Processlist: ' . $processlist['list'], LOGGER_DEBUG);