diff options
Diffstat (limited to 'views/default/admin')
-rw-r--r-- | views/default/admin/appearance/menu_items.php | 2 | ||||
-rw-r--r-- | views/default/admin/components/plugin.php | 18 | ||||
-rw-r--r-- | views/default/admin/components/plugin_settings.php | 2 | ||||
-rw-r--r-- | views/default/admin/plugins/simple.php | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/views/default/admin/appearance/menu_items.php b/views/default/admin/appearance/menu_items.php index b6177dfd0..e6a40c754 100644 --- a/views/default/admin/appearance/menu_items.php +++ b/views/default/admin/appearance/menu_items.php @@ -82,6 +82,6 @@ $form_body .= elgg_view('input/submit', array('value' => elgg_echo('save'))); echo elgg_view('input/form', array( 'body' => $form_body, - 'action' => "{$vars['url']}action/admin/menu_items" + 'action' => elgg_get_site_url()."action/admin/menu_items" )); echo "</div>";
\ No newline at end of file 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 = '<a href="' . elgg_format_url($top_url) . '">' . elgg_echo('top') . '</a>'; $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 = '<a href="' . elgg_format_url($up_url) . '">' . elgg_echo('up') . '</a>'; } 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 = '<a href="' . elgg_format_url($down_url) . '">' . elgg_echo('down') . '</a>'; $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 = '<a href="' . elgg_format_url($bottom_url) . '">' . elgg_echo('bottom') . '</a>'; } 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 = '<a class="cancel_button" href="' . elgg_format_url($url) . '">' . elgg_echo('disable') . '</a>'; } 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 = '<a class="submit_button" href="' . elgg_format_url($url) . '">' . elgg_echo('enable') . '</a>'; } @@ -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']) { <?php if (elgg_view_exists("settings/{$plugin}/edit")) { - $link = "{$vars['url']}pg/admin/plugin_settings/$plugin"; + $link = elgg_get_site_url()."pg/admin/plugin_settings/$plugin"; $settings_link = "<a class='plugin_settings small link' href='$link'>[". elgg_echo('settings') ."]</a>"; } ?> 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 diff --git a/views/default/admin/plugins/simple.php b/views/default/admin/plugins/simple.php index 0d1987d05..3baa00caf 100644 --- a/views/default/admin/plugins/simple.php +++ b/views/default/admin/plugins/simple.php @@ -57,7 +57,7 @@ foreach ($plugin_list as $name => $info) { } if (elgg_view_exists("settings/{$info['installed_name']}/edit")) { - $settings_href = "{$vars['url']}pg/admin/plugin_settings/{$info['installed_name']}"; + $settings_href = elgg_get_site_url()."pg/admin/plugin_settings/{$info['installed_name']}"; $settings = " | <a class='plugin_settings link' href='$settings_href'>". elgg_echo('settings') ."</a>"; } @@ -88,7 +88,7 @@ $form_body .= elgg_view('input/submit', array('value' => elgg_echo('save'))); $form_body .= elgg_view('input/reset', array('value' => elgg_echo('reset'), 'class' => 'action_button disabled')); echo elgg_view('input/form', array( - 'action' => "{$vars['url']}action/admin/plugins/simple_update_states", + 'action' => elgg_get_site_url()."action/admin/plugins/simple_update_states", 'body' => $form_body, 'class' => 'admin_plugins_simpleview' ));
\ No newline at end of file |