Commit 2542f45e authored by Leigh Stoller's avatar Leigh Stoller

Use the short URLs on shared (all registered users) profiles when

using the CloudLab interface.
parent 5208e4e0
......@@ -228,11 +228,11 @@ class Profile
# URL. To the specific version of the profile.
#
function URL() {
global $APTBASE, $ISVSERVER;
global $APTBASE, $ISVSERVER, $ISCLOUD;
$uuid = $this->uuid();
if ($this->ispublic()) {
if ($this->ispublic() || ($ISCLOUD && $this->shared())) {
$pid = $this->pid();
$name = $this->name();
$vers = $this->version();
......@@ -249,11 +249,11 @@ class Profile
}
# And the URL of the profile itself.
function ProfileURL() {
global $APTBASE, $ISVSERVER;
global $APTBASE, $ISVSERVER, $ISCLOUD;
$uuid = $this->profile_uuid();
if ($this->ispublic()) {
if ($this->ispublic() || ($ISCLOUD && $this->shared())) {
$pid = $this->pid();
$name = $this->name();
if ($ISVSERVER)
......
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