diff options
Diffstat (limited to 'mod/sitepages/actions/addfront.php')
-rw-r--r-- | mod/sitepages/actions/addfront.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/sitepages/actions/addfront.php b/mod/sitepages/actions/addfront.php index f92d4614d..8187862a7 100644 --- a/mod/sitepages/actions/addfront.php +++ b/mod/sitepages/actions/addfront.php @@ -16,7 +16,7 @@ $logged_in_content = get_input('logged_in_content', '', FALSE); $logged_out_content = get_input('logged_out_content', '', FALSE); // do some error checking to make sure you can't lock yourself out of your front page. -if (FALSE === strpos($logged_out_content, '[[login_box')) { +if (FALSE === strpos($logged_out_content, '[loginbox')) { register_error(elgg_echo('sitepages:error:no_login')); forward($_SERVER['HTTP_REFERER']); } @@ -45,4 +45,4 @@ if ($sitepage->save()) { register_error(elgg_echo("sitepages:error")); } -forward($_SERVER['HTTP_REFERER']);
\ No newline at end of file +forward($_SERVER['HTTP_REFERER']); |