From bb1f45eb02bac603d67ac08cb674c4050a245c28 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:23:45 +0000 Subject: Refs #2598: Converted most $vars['url'] to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7149 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/components/plugin.php | 18 +++++++++--------- views/default/admin/components/plugin_settings.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'views/default/admin/components') diff --git a/views/default/admin/components/plugin.php b/views/default/admin/components/plugin.php index 4b26465e6..013f0cd07 100644 --- a/views/default/admin/components/plugin.php +++ b/views/default/admin/components/plugin.php @@ -29,30 +29,30 @@ $active_class = ($active) ? 'active' : 'not_active'; $top_url = $up_url = $down_url = $bottom_url = ''; if ($vars['order'] > 10) { - $top_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=1&__elgg_token=$token&__elgg_ts=$ts"; + $top_url = elgg_get_site_url()."action/admin/plugins/reorder?plugin={$plugin}&order=1&__elgg_token=$token&__elgg_ts=$ts"; $top_link = '' . elgg_echo('top') . ''; $order = $vars['order'] - 11; - $up_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; + $up_url = elgg_get_site_url()."action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $up_link = '' . elgg_echo('up') . ''; } if ($vars['order'] < $vars['maxorder']) { $order = $vars['order'] + 11; - $down_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; + $down_url = elgg_get_site_url()."action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $down_link = '' . elgg_echo('down') . ''; $order = $vars['maxorder'] + 11; - $bottom_url = "{$vars['url']}action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; + $bottom_url = elgg_get_site_url()."action/admin/plugins/reorder?plugin={$plugin}&order=$order&__elgg_token=$token&__elgg_ts=$ts"; $bottom_link = '' . elgg_echo('bottom') . ''; } if ($active) { - $url = "{$vars['url']}action/admin/plugins/disable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; + $url = elgg_get_site_url()."action/admin/plugins/disable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; $enable_disable = '' . elgg_echo('disable') . ''; } else { - $url = "{$vars['url']}action/admin/plugins/enable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; + $url = elgg_get_site_url()."action/admin/plugins/enable?plugin=$plugin&__elgg_token=$token&__elgg_ts=$ts"; $enable_disable = '' . elgg_echo('enable') . ''; } @@ -60,7 +60,7 @@ if ($active) { $categories_list = ''; if ($manifest['category']) { $categories_arr = array(); - $base_url = "{$vars['url']}pg/admin/plugins?category="; + $base_url = elgg_get_site_url()."pg/admin/plugins?category="; foreach($manifest['category'] as $category) { $url = $base_url . urlencode($category); @@ -72,7 +72,7 @@ if ($manifest['category']) { $screenshots = ''; if ($manifest['screenshot']) { - $base_url = "{$vars['url']}mod/"; + $base_url = elgg_get_site_url()."mod/"; $limit = 4; foreach ($manifest['screenshot'] as $screenshot) { @@ -98,7 +98,7 @@ if ($manifest['screenshot']) { [". elgg_echo('settings') ."]"; } ?> diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php index 05623ffbb..13e962634 100644 --- a/views/default/admin/components/plugin_settings.php +++ b/views/default/admin/components/plugin_settings.php @@ -16,4 +16,4 @@ $form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'cla echo elgg_view_title($plugin_info['name']); -echo elgg_view('input/form', array('body' => $form_body, 'internalid' => 'plugin_settings', 'action' => "{$vars['url']}action/plugins/settings/save")); \ No newline at end of file +echo elgg_view('input/form', array('body' => $form_body, 'internalid' => 'plugin_settings', 'action' => elgg_get_site_url()."action/plugins/settings/save")); \ No newline at end of file -- cgit v1.2.3