aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:36:21 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 21:36:21 +0000
commit1d3d21b69eafb45c97e283ead86f63e7bf1731dc (patch)
treeea53464aa86dd85a3ede83e8192a1bd8e6e0f363 /mod/file
parent59bbd848d809da169e0d6baadce4890ac375b90b (diff)
downloadelgg-1d3d21b69eafb45c97e283ead86f63e7bf1731dc.tar.gz
elgg-1d3d21b69eafb45c97e283ead86f63e7bf1731dc.tar.bz2
Refs #2463: Removed gratuitous references to $CONFIG->url, etc. in blog - groups plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7204 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/start.php4
-rw-r--r--mod/file/views/default/object/file.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/mod/file/start.php b/mod/file/start.php
index 005019060..544024d49 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -291,11 +291,9 @@
* @return string File URL
*/
function file_url($entity) {
-
- global $CONFIG;
$title = $entity->title;
$title = elgg_get_friendly_title($title);
- return $CONFIG->url . "pg/file/" . $entity->getOwnerEntity()->username . "/read/" . $entity->getGUID() . "/" . $title;
+ return "pg/file/" . $entity->getOwnerEntity()->username . "/read/" . $entity->getGUID() . "/" . $title;
}
// Make sure test_init is called on initialisation
diff --git a/mod/file/views/default/object/file.php b/mod/file/views/default/object/file.php
index c1d2a3d13..2511f5af6 100644
--- a/mod/file/views/default/object/file.php
+++ b/mod/file/views/default/object/file.php
@@ -43,7 +43,7 @@
echo "<a href=\"".elgg_get_site_url()."mod/file/edit.php?file_guid={$file->getGUID()}\">" . elgg_echo('edit') . "</a>&nbsp;";
echo elgg_view('output/confirmlink',array(
- 'href' => elgg_get_site_url() . "action/file/delete?file=" . $file->getGUID(),
+ 'href' => "action/file/delete?file=" . $file->getGUID(),
'text' => elgg_echo("delete"),
'confirm' => elgg_echo("file:delete:confirm"),
'is_action' => true,
@@ -151,7 +151,7 @@
<?php
echo elgg_view('output/confirmlink',array(
- 'href' => elgg_get_site_url() . "action/file/delete?file=" . $file->getGUID(),
+ 'href' => "action/file/delete?file=" . $file->getGUID(),
'text' => elgg_echo("delete"),
'confirm' => elgg_echo("file:delete:confirm"),
'is_action' => true,