]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
fixing stuff that broke with the last big code push
[friendica.git] / mod / register.php
index 8678614ac9f695f39ceb000832ab327e905ca820..2e5d02273a002ee10b4a239a52b0fd980eb22094 100644 (file)
@@ -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;