Commit 905ea6f1 authored by Aaron Wells's avatar Aaron Wells
Browse files

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

Change-Id: Ic8cb9115654106f669b544f5f8b060d443a0a9f0
behatnotneeded: Can't yet test MNet methods in Behat.
parent d8859ba8
......@@ -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 = '';
}
}
......
Markdown is supported
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