Commit 1767ae17 authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review
Browse files

Merge "Make Mnet return collection URLs in same format as view URLs (Bug 1514299)"

parents 287a10dd 905ea6f1
......@@ -573,9 +573,11 @@ function get_views_for_user($username, $query=null) {
foreach ($data->collections->data as $c) {
$cobj = new Collection($c->id);
if ($c->numviews > 0) {
$c->url = $cobj->get_url();
$c->url = $cobj->get_url(false, true);
$c->fullurl = get_config('wwwroot') . $c->url;
}
else {
$c->fullurl = '';
$c->url = '';
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment