Replace defaults() calls on $_SESSION by Core\Session calls
- Replace direct calls to $_SESSION by Core\Session calls in Module\Login
This commit is contained in:
parent
cbca26d185
commit
01e71254d9
10 changed files with 37 additions and 43 deletions
|
@ -19,6 +19,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Group;
|
||||
|
@ -854,7 +855,7 @@ function networkThreadedView(App $a, $update, $parent)
|
|||
((time() - $_SESSION['network_last_date_timestamp']) < ($browser_update * 10))) {
|
||||
$bottom_limit = $_SESSION['network_last_date'];
|
||||
}
|
||||
$_SESSION['network_last_date'] = defaults($_SESSION, 'network_last_top_limit', $top_limit);
|
||||
$_SESSION['network_last_date'] = Session::get('network_last_top_limit', $top_limit);
|
||||
$_SESSION['network_last_date_timestamp'] = time();
|
||||
|
||||
if ($last_date > $top_limit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue