use Friendica\BaseObject;
use Friendica\Content\Nav;
use Friendica\Core\Addon;
-use Friendica\Core\System;
-use Friendica\Core\Theme;
use Friendica\Core\Config;
use Friendica\Core\L10n;
+use Friendica\Core\Session;
+use Friendica\Core\System;
+use Friendica\Core\Theme;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
use Friendica\Model\Profile;
exit();
}
- require_once 'include/session.php';
+ Session::init();
Addon::loadHooks();
Addon::callHooks('init_1');
$a->page['end'] = '';
-if (! x($_SESSION, 'sysmsg')) {
+if (x($_SESSION, 'sysmsg') === false) {
$_SESSION['sysmsg'] = [];
}
-if (! x($_SESSION, 'sysmsg_info')) {
+if (x($_SESSION, 'sysmsg_info') === false) {
$_SESSION['sysmsg_info'] = [];
}
// Array for informations about last received items
-if (! x($_SESSION, 'last_updated')) {
+if (x($_SESSION, 'last_updated') === false) {
$_SESSION['last_updated'] = [];
}
/*
/// @TODO one day, kill those error-surpressing @ stuff, or PHP should ban it
@$doc->loadHTML($content);
- $xpath = new DomXPath($doc);
+ $xpath = new DOMXPath($doc);
$list = $xpath->query("//*[contains(@id,'tread-wrapper-')]"); /* */