aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 15:20:20 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 15:20:20 +0000
commit6562e3311d64e5ddbe7183188d4dafddb3080e62 (patch)
tree05eabfad0db210ce6f040920d2bea29e4f5364b5 /mod/sitepages
parent31754e1a27c56422c287393c79e727ddf75788cb (diff)
downloadelgg-6562e3311d64e5ddbe7183188d4dafddb3080e62.tar.gz
elgg-6562e3311d64e5ddbe7183188d4dafddb3080e62.tar.bz2
Correctly checking for logoutbox for custom front pages.
git-svn-id: http://code.elgg.org/elgg/trunk@5773 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages')
-rw-r--r--mod/sitepages/actions/addfront.php4
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']);