From b027f962af16d074398d1351a90d863aaf5469f3 Mon Sep 17 00:00:00 2001 From: nickw Date: Wed, 26 May 2010 18:25:08 +0000 Subject: Updating Sitepages plugin settings for new administration layout. git-svn-id: http://code.elgg.org/elgg/trunk@6242 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/sitepages/actions/addmeta.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 mod/sitepages/actions/addmeta.php (limited to 'mod/sitepages/actions/addmeta.php') diff --git a/mod/sitepages/actions/addmeta.php b/mod/sitepages/actions/addmeta.php deleted file mode 100644 index ec72d6339..000000000 --- a/mod/sitepages/actions/addmeta.php +++ /dev/null @@ -1,36 +0,0 @@ - - * @copyright Curverider Ltd 2008-2010 - * @link http://elgg.com/ - * - */ - -admin_gatekeeper(); - -$description = get_input('description', '', FALSE); -$metatags = get_input('metatags', '', FALSE); - -// Cache to the session -$_SESSION['description'] = $description; -$_SESSION['metatags'] = $metatags; - -if (!$sitepage = sitepages_get_sitepage_object('seo')) { - $sitepage = sitepages_create_sitepage_object('seo'); -} - -$sitepage->title = $metatags; -$sitepage->description = $description; - -if ($sitepage->save()) { - system_message(elgg_echo("sitepages:seocreated")); - unset($_SESSION['description']); unset($_SESSION['metatags']); -} else { - register_error(elgg_echo("sitepages:error")); -} - -forward($_SERVER['HTTP_REFERER']); \ No newline at end of file -- cgit v1.2.3