X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregister.php;h=2e5d02273a002ee10b4a239a52b0fd980eb22094;hb=f937de932d87737d14278003f80b5bc5025acdc6;hp=8678614ac9f695f39ceb000832ab327e905ca820;hpb=9cd9ce9c170fbda524c06f62922cbe33a8fe9b82;p=friendica.git diff --git a/mod/register.php b/mod/register.php index 8678614ac9..2e5d02273a 100644 --- a/mod/register.php +++ b/mod/register.php @@ -175,6 +175,11 @@ function register_post(&$a) { if(! function_exists('register_content')) { function register_content(&$a) { + if($a->config['register_policy'] == REGISTER_CLOSED) { + notice("Permission denied." . EOL); + return; + } + $o = file_get_contents("view/register.tpl"); $o = replace_macros($o, array('$registertext' =>((x($a->config,'register_text'))? $a->config['register_text'] : "" ))); return $o;