aboutsummaryrefslogtreecommitdiff
path: root/mod/sitepages/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/sitepages/actions')
-rw-r--r--mod/sitepages/actions/addfront.php9
-rw-r--r--mod/sitepages/actions/addmeta.php4
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/sitepages/actions/addfront.php b/mod/sitepages/actions/addfront.php
index 6b8782da7..fd2154cc3 100644
--- a/mod/sitepages/actions/addfront.php
+++ b/mod/sitepages/actions/addfront.php
@@ -12,7 +12,9 @@
admin_gatekeeper();
-$content = get_input('sitepages_content', '', FALSE);
+$logged_in_content = get_input('logged_in_content', '', FALSE);
+$logged_out_content = get_input('logged_out_content', '', FALSE);
+
$css = get_input('css', '', FALSE);
$loggedin_user_guid = get_loggedin_userid();
@@ -25,8 +27,9 @@ if (!$sitepage = sitepages_get_sitepage_object('front')) {
$sitepage = sitepages_create_sitepage_object('front');
}
-$sitepage->title = $css;
-$sitepage->description = $content;
+$sitepage->css = $css;
+$sitepage->logged_in_content = $logged_in_content;
+$sitepage->logged_out_content = $logged_out_content;
if ($sitepage->save()) {
system_message(elgg_echo("sitepages:posted"));
diff --git a/mod/sitepages/actions/addmeta.php b/mod/sitepages/actions/addmeta.php
index e9f40cdb4..e5c947776 100644
--- a/mod/sitepages/actions/addmeta.php
+++ b/mod/sitepages/actions/addmeta.php
@@ -19,8 +19,8 @@ $metatags = get_input('metatags', '', FALSE);
$_SESSION['description'] = $description;
$_SESSION['metatags'] = $metatags;
-if (!$sitepage = sitepages_get_sitepage_object('front')) {
- $sitepage = sitepages_create_sitepage_object('front');
+if (!$sitepage = sitepages_get_sitepage_object('seo')) {
+ $sitepage = sitepages_create_sitepage_object('seo');
}
$sitepage->title = $metatags;