mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Enable the view module in maintenance mode
- This allows to load the default theme CSS - Theme scripts have been updated to reflect the possibility they will be included in maintenance mode
This commit is contained in:
parent
ac56dcd50f
commit
1d94e2866a
10 changed files with 177 additions and 141 deletions
|
@ -19,6 +19,10 @@ use Friendica\DI;
|
|||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
/*
|
||||
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
|
||||
*/
|
||||
|
||||
function vier_init(App $a)
|
||||
{
|
||||
$a->setThemeInfoValue('events_in_profile', false);
|
||||
|
@ -27,7 +31,12 @@ function vier_init(App $a)
|
|||
|
||||
$args = DI::args();
|
||||
|
||||
if ($args->get(0) === 'profile' && $args->get(1) === ($a->getLoggedInUserNickname() ?? '') || $args->get(0) === 'network' && local_user()
|
||||
if (
|
||||
DI::mode()->has(App\Mode::MAINTENANCEDISABLED)
|
||||
&& (
|
||||
$args->get(0) === 'profile' && $args->get(1) === ($a->getLoggedInUserNickname() ?? '')
|
||||
|| $args->get(0) === 'network' && local_user()
|
||||
)
|
||||
) {
|
||||
vier_community_info();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue