This commit is contained in:
Michael 2018-01-03 14:54:25 +00:00
parent b002574590
commit 11cdb25aeb

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* @file src/Module/Global.php * @file src/Module/GlobalModule.php
*/ */
namespace Friendica\Module; namespace Friendica\Module;
@ -19,14 +19,16 @@ use dba;
* @author heluecht@pirati.ca * @author heluecht@pirati.ca
*/ */
class GlobalModule extends BaseModule { class GlobalModule extends BaseModule {
public static function init() { public static function init()
{
if (!local_user()) { if (!local_user()) {
unset($_SESSION['theme']); unset($_SESSION['theme']);
unset($_SESSION['mobile-theme']); unset($_SESSION['mobile-theme']);
} }
} }
public static function content($update = 0) { public static function content($update = 0)
{
$a = self::getApp(); $a = self::getApp();
$o = ''; $o = '';
@ -81,7 +83,8 @@ class GlobalModule extends BaseModule {
)); ));
} }
private static function getPublicItems($start, $itemspage) { private static function getPublicItems($start, $itemspage)
{
$r = dba::p("SELECT ".item_fieldlists()." FROM `thread` $r = dba::p("SELECT ".item_fieldlists()." FROM `thread`
INNER JOIN `item` ON `item`.`id` = `thread`.`iid` ".item_joins(). INNER JOIN `item` ON `item`.`id` = `thread`.`iid` ".item_joins().
"WHERE `thread`.`uid` = 0 AND `verb` = ? "WHERE `thread`.`uid` = 0 AND `verb` = ?