diff options
Diffstat (limited to 'mod/file/start.php')
-rw-r--r-- | mod/file/start.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/file/start.php b/mod/file/start.php index 60e863df5..228e4788b 100644 --- a/mod/file/start.php +++ b/mod/file/start.php @@ -28,7 +28,7 @@ global $CONFIG; // Set up menu (tools dropdown) - add_menu(elgg_echo('files'), $CONFIG->wwwroot . "pg/file/"); + add_menu(elgg_echo('files'), elgg_get_site_url() . "pg/file/"); // Extend CSS elgg_extend_view('css', 'file/css'); @@ -138,7 +138,7 @@ $descr = $entity->description; $title = $entity->title; global $CONFIG; - $url = $CONFIG->wwwroot . "pg/view/" . $entity->guid; + $url = elgg_get_site_url() . "pg/view/" . $entity->guid; if ($method == 'sms') { $owner = $entity->getOwnerEntity(); return $owner->name . ' ' . elgg_echo("file:via") . ': ' . $url . ' (' . $title . ')'; |