aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:05:45 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 03:05:45 +0000
commite0ef12b0954d085fa0620e2414ceb24e88121c12 (patch)
tree399d78e796a4dc79535322e0d66e3c3e2e62b4fa /views/default
parent2dd0ecb8e13c48da7872a650d03a3aa006838aa9 (diff)
downloadelgg-e0ef12b0954d085fa0620e2414ceb24e88121c12.tar.gz
elgg-e0ef12b0954d085fa0620e2414ceb24e88121c12.tar.bz2
Fixes #2428 last of the $CONFIG removals. Anything missed can be individual tickets
git-svn-id: http://code.elgg.org/elgg/trunk@8305 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/admin/plugins/advanced.php8
-rw-r--r--views/default/forms/admin/menu/save.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/views/default/admin/plugins/advanced.php b/views/default/admin/plugins/advanced.php
index 1c42be14d..6b32035f3 100644
--- a/views/default/admin/plugins/advanced.php
+++ b/views/default/admin/plugins/advanced.php
@@ -39,8 +39,6 @@ foreach ($installed_plugins as $plugin) {
}
}
-$ts = time();
-$token = generate_action_token($ts);
$categories = array_merge(array('' => elgg_echo('admin:plugins:categories:all')), $categories);
$category_dropdown = elgg_view('input/dropdown', array(
@@ -60,8 +58,10 @@ $category_form = elgg_view('input/form', array(
// @todo Until "en/deactivate all" means "All plugins on this page" hide when not looking at all.
if (!isset($show_category) || empty($show_category)) {
- $activate_url = "{$CONFIG->url}action/admin/plugins/activate_all?__elgg_token=$token&amp;__elgg_ts=$ts";
- $deactivate_url = "{$CONFIG->url}action/admin/plugins/deactivate_all?__elgg_token=$token&amp;__elgg_ts=$ts";
+ $activate_url = "action/admin/plugins/activate_all";
+ $activate_url = elgg_add_action_tokens_to_url($activate_url);
+ $deactivate_url = "action/admin/plugins/deactivate_all";
+ $deactivate_url = elgg_add_action_tokens_to_url($deactivate_url);
$buttons = "<div class=\"mbl\">";
$buttons .= "<a class='elgg-button-action' href=\"$activate_url\">" . elgg_echo('admin:plugins:activate_all') . '</a> ';
diff --git a/views/default/forms/admin/menu/save.php b/views/default/forms/admin/menu/save.php
index 2cafaa89b..c55ff3367 100644
--- a/views/default/forms/admin/menu/save.php
+++ b/views/default/forms/admin/menu/save.php
@@ -4,8 +4,8 @@
*/
// get site menu items
-global $CONFIG;
-$menu = $CONFIG->menus['site'];
+$menu = elgg_get_config('menus');
+$menu = $menu['site'];
$builder = new ElggMenuBuilder($menu);
$menu = $builder->getMenu('name');
$menu_items = $menu['default'];