diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 22:19:14 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-13 22:19:14 +0000 |
commit | c1c2563fc1cd451afaf735350eb1c576740be2f4 (patch) | |
tree | c101b4050ee0fbc356699276590bd7138e7ddbdb /mod/sitepages/actions/edit_settings.php | |
parent | b42125b50f3fcd518ef058211a318ce5c6b66e1b (diff) | |
download | elgg-c1c2563fc1cd451afaf735350eb1c576740be2f4.tar.gz elgg-c1c2563fc1cd451afaf735350eb1c576740be2f4.tar.bz2 |
swapping sitepages for externalpages since the external pages is easier to integrate into 1.8 . sitepages needs more work before it is ready for release (plus we would need an upgrade script)
git-svn-id: http://code.elgg.org/elgg/trunk@8206 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/actions/edit_settings.php')
-rw-r--r-- | mod/sitepages/actions/edit_settings.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/mod/sitepages/actions/edit_settings.php b/mod/sitepages/actions/edit_settings.php deleted file mode 100644 index 8f328eb76..000000000 --- a/mod/sitepages/actions/edit_settings.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php -/** - * - */ - -$page_type = get_input('page_type', 'frontsimple'); -if (!$sitepage = sitepages_get_sitepage_object($page_type)) { - $sitepage = sitepages_create_sitepage_object($page_type); -} - -switch ($page_type) { - case 'about': - case 'terms': - case 'privacy': - $content = get_input('sitepages_content', '', FALSE); - if (empty($content)) { - register_error(elgg_echo('sitepages:blank')); - forward(REFERER); - } - - //$sitepage->title = $page_type; - $sitepage->description = $content; - $sitepage->tags = string_to_tag_array(get_input('sitepages_tags')); - - break; - case 'seo': - $sitepage->title = get_input('metatags', '', FALSE);; - $sitepage->description = get_input('description', '', FALSE); - - break; - case 'frontsimple': - default: - $params = get_input('params', array()); - set_plugin_setting('ownfrontpage', $params['ownfrontpage'], 'sitepages'); - - $sitepage->welcometitle = get_input('welcometitle', '', FALSE); - $sitepage->welcomemessage = get_input('welcomemessage', '', FALSE); - $sitepage->sidebartitle = get_input('sidebartitle', '', FALSE); - $sitepage->sidebarmessage = get_input('sidebarmessage', '', FALSE); - - break; -} - -if ($sitepage->save()) { - system_message(elgg_echo('sitepages:posted')); -} else { - register_error(elgg_echo('sitepages:error')); -} - -forward(REFERER); |