X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Faction.php;h=2b3b707c5968f88ed72013a3c40e39b2fdfa8a49;hb=7f9ab683b259fc93d507eb705c84af0cfd2fae5b;hp=4296ae7dea377a41c10496e7777c0a98639034a8;hpb=f789928942c5753d1109ef9609449e79564fda4e;p=quix0rs-gnu-social.git diff --git a/lib/action.php b/lib/action.php index 4296ae7dea..2b3b707c59 100644 --- a/lib/action.php +++ b/lib/action.php @@ -235,6 +235,16 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowDesign', array($this)); } Event::handle('EndShowStyles', array($this)); + + if (common_config('custom_css', 'enabled')) { + $css = common_config('custom_css', 'css'); + if (Event::handle('StartShowCustomCss', array($this, &$css))) { + if (trim($css) != '') { + $this->style($css); + } + Event::handle('EndShowCustomCss', array($this)); + } + } } } @@ -467,7 +477,7 @@ class Action extends HTMLOutputter // lawsuit _m('MENU', 'Logout'), $tooltip, false, 'nav_logout'); } else { - if (!common_config('site', 'closed')) { + if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) { // TRANS: Tooltip for main menu option "Register" $tooltip = _m('TOOLTIP', 'Create an account'); $this->menuItem(common_local_url('register'),