aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messageboard/views')
-rw-r--r--mod/messageboard/views/default/messageboard/css.php2
-rw-r--r--mod/messageboard/views/default/messageboard/forms/add.php2
-rw-r--r--mod/messageboard/views/default/messageboard/messageboard_content.php6
-rw-r--r--mod/messageboard/views/default/widgets/messageboard/view.php6
4 files changed, 8 insertions, 8 deletions
diff --git a/mod/messageboard/views/default/messageboard/css.php b/mod/messageboard/views/default/messageboard/css.php
index 62ae629c0..b7782e8e3 100644
--- a/mod/messageboard/views/default/messageboard/css.php
+++ b/mod/messageboard/views/default/messageboard/css.php
@@ -78,7 +78,7 @@ p.message_item_timestamp {
width:14px;
height:14px;
margin:0 3px 3px 0;
- background: url("<?php echo $vars['url']; ?>_graphics/icon_customise_remove.png") no-repeat 0 0;
+ background: url("<?php echo elgg_get_site_url(); ?>_graphics/icon_customise_remove.png") no-repeat 0 0;
text-indent: -9000px;
}
.messageboard .delete_message a:hover {
diff --git a/mod/messageboard/views/default/messageboard/forms/add.php b/mod/messageboard/views/default/messageboard/forms/add.php
index ec61ebee7..d44e477bf 100644
--- a/mod/messageboard/views/default/messageboard/forms/add.php
+++ b/mod/messageboard/views/default/messageboard/forms/add.php
@@ -8,7 +8,7 @@
?>
<div id="mb_input_wrapper">
- <form action="<?php echo $vars['url']; ?>action/messageboard/add" method="post" name="messageboardForm">
+ <form action="<?php echo elgg_get_site_url(); ?>action/messageboard/add" method="post" name="messageboardForm">
<!-- textarea for the contents -->
<textarea name="message_content" value="" class="input_textarea"></textarea><br />
diff --git a/mod/messageboard/views/default/messageboard/messageboard_content.php b/mod/messageboard/views/default/messageboard/messageboard_content.php
index c0f4cea3c..5f3db4d18 100644
--- a/mod/messageboard/views/default/messageboard/messageboard_content.php
+++ b/mod/messageboard/views/default/messageboard/messageboard_content.php
@@ -33,7 +33,7 @@
echo "<div class='delete_message'>" . elgg_view("output/confirmlink",array(
- 'href' => $vars['url'] . "action/messageboard/delete?annotation_id=" . $vars['annotation']->id,
+ 'href' => elgg_get_site_url() . "action/messageboard/delete?annotation_id=" . $vars['annotation']->id,
'text' => elgg_echo('delete'),
'confirm' => elgg_echo('deleteconfirm'),
)) . "</div>";
@@ -50,9 +50,9 @@
//create the url to their messageboard
$user_mb = "pg/messageboard/" . $msg_owner->username;
- echo "<a href=\"" . $vars['url'] . $user_mb . "\">".elgg_echo('messageboard:replyon')." " . $msg_owner->name . "'s " . elgg_echo('messageboard:messageboard') . "</a> | ";
+ echo "<a href=\"" . elgg_get_site_url() . $user_mb . "\">".elgg_echo('messageboard:replyon')." " . $msg_owner->name . "'s " . elgg_echo('messageboard:messageboard') . "</a> | ";
- echo "<a href=\"" . $vars['url'] . "mod/messageboard/history.php?user=" . $msg_owner->guid ."\">" . elgg_echo('messageboard:history') . "</a>";
+ echo "<a href=\"" . elgg_get_site_url() . "mod/messageboard/history.php?user=" . $msg_owner->guid ."\">" . elgg_echo('messageboard:history') . "</a>";
}
?>
diff --git a/mod/messageboard/views/default/widgets/messageboard/view.php b/mod/messageboard/views/default/widgets/messageboard/view.php
index 223cbc007..8c1abb47b 100644
--- a/mod/messageboard/views/default/widgets/messageboard/view.php
+++ b/mod/messageboard/views/default/widgets/messageboard/view.php
@@ -25,12 +25,12 @@ if (isloggedin()) {
$("#postit").click(function(){
//display the ajax loading gif at the start of the function call
- //$('#loader').html('<img src="<?php echo $vars['url']; ?>_graphics/ajax_loader.gif" />');
+ //$('#loader').html('<img src="<?php echo elgg_get_site_url(); ?>_graphics/ajax_loader.gif" />');
$('#loader').html('<?php echo elgg_view('ajax/loader',array('slashes' => TRUE)); ?>');
//load the results back into the message board contents and remove the loading gif
//remember that the actual div being populated is determined on views/default/messageboard/messageboard.php
- $("#messageboard_wrapper").load("<?php echo $vars['url']; ?>mod/messageboard/ajax_endpoint/load.php", {messageboard_content:$("[name=message_content]").val(), pageOwner:$("[name=pageOwner]").val(), numToDisplay:<?php echo $num_display; ?>}, function(){
+ $("#messageboard_wrapper").load("<?php echo elgg_get_site_url(); ?>mod/messageboard/ajax_endpoint/load.php", {messageboard_content:$("[name=message_content]").val(), pageOwner:$("[name=pageOwner]").val(), numToDisplay:<?php echo $num_display; ?>}, function(){
$('#loader').empty(); // remove the loading gif
$('[name=message_content]').val(''); // clear the input textarea
}); //end
@@ -53,7 +53,7 @@ if (isloggedin()) {
<!-- menu options -->
<div id="messageboard_widget_menu">
- <a href="<?php echo $vars['url']; ?>pg/messageboard/<?php echo $user->username; ?>"><?php echo elgg_echo("messageboard:viewall"); ?></a>
+ <a href="<?php echo elgg_get_site_url(); ?>pg/messageboard/<?php echo $user->username; ?>"><?php echo elgg_echo("messageboard:viewall"); ?></a>
</div>
<!-- loading graphic -->