mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
Remove useless theme session variable deletions in modules
This commit is contained in:
parent
ead0defb48
commit
f4d06ebd47
7 changed files with 0 additions and 41 deletions
|
@ -17,14 +17,6 @@ use Friendica\Database\DBA;
|
||||||
use Friendica\Model\Item;
|
use Friendica\Model\Item;
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
|
|
||||||
function community_init(App $a)
|
|
||||||
{
|
|
||||||
if (!local_user()) {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function community_content(App $a, $update = 0)
|
function community_content(App $a, $update = 0)
|
||||||
{
|
{
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
|
@ -76,10 +76,6 @@ function search_init(App $a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$a->page['aside'] .= search_saved_searches();
|
$a->page['aside'] .= search_saved_searches();
|
||||||
|
|
||||||
} else {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,14 +41,6 @@ function uimport_content(App $a)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!empty($_SESSION['theme'])) {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
}
|
|
||||||
if (!empty($_SESSION['mobile-theme'])) {
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate("uimport.tpl");
|
$tpl = Renderer::getMarkupTemplate("uimport.tpl");
|
||||||
return Renderer::replaceMacros($tpl, [
|
return Renderer::replaceMacros($tpl, [
|
||||||
'$regbutt' => L10n::t('Import'),
|
'$regbutt' => L10n::t('Import'),
|
||||||
|
|
|
@ -34,9 +34,6 @@ class Directory extends BaseModule
|
||||||
if (local_user()) {
|
if (local_user()) {
|
||||||
$app->page['aside'] .= Widget::findPeople();
|
$app->page['aside'] .= Widget::findPeople();
|
||||||
$app->page['aside'] .= Widget::follow();
|
$app->page['aside'] .= Widget::follow();
|
||||||
} else {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
|
|
|
@ -14,14 +14,6 @@ class Home extends BaseModule
|
||||||
{
|
{
|
||||||
public static function content()
|
public static function content()
|
||||||
{
|
{
|
||||||
if (!empty($_SESSION['theme'])) {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($_SESSION['mobile-theme'])) {
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$app = self::getApp();
|
$app = self::getApp();
|
||||||
$config = $app->getConfig();
|
$config = $app->getConfig();
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,6 @@ class Login extends BaseModule
|
||||||
{
|
{
|
||||||
$a = self::getApp();
|
$a = self::getApp();
|
||||||
|
|
||||||
Session::remove('theme');
|
|
||||||
Session::remove('mobile-theme');
|
|
||||||
|
|
||||||
if (local_user()) {
|
if (local_user()) {
|
||||||
$a->internalRedirect();
|
$a->internalRedirect();
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,13 +61,6 @@ class Register extends BaseModule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($_SESSION['theme'])) {
|
|
||||||
unset($_SESSION['theme']);
|
|
||||||
}
|
|
||||||
if (!empty($_SESSION['mobile-theme'])) {
|
|
||||||
unset($_SESSION['mobile-theme']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$username = defaults($_REQUEST, 'username' , '');
|
$username = defaults($_REQUEST, 'username' , '');
|
||||||
$email = defaults($_REQUEST, 'email' , '');
|
$email = defaults($_REQUEST, 'email' , '');
|
||||||
$openid_url = defaults($_REQUEST, 'openid_url', '');
|
$openid_url = defaults($_REQUEST, 'openid_url', '');
|
||||||
|
|
Loading…
Reference in a new issue