Commit a27293b3 authored by Leigh B Stoller's avatar Leigh B Stoller

Enable multi-site for all users.

parent 625a7456
......@@ -693,7 +693,7 @@ function SPITFORM($formfields, $newuser, $errors)
}
$isadmin = (isset($this_user) && ISADMIN() ? 1 : 0);
echo " window.ISADMIN = $isadmin;\n";
$multisite = (isset($this_user) && (ISADMIN() || STUDLY()) ? 1 : 0);
$multisite = (isset($this_user) ? 1 : 0);
echo " window.MULTISITE = $multisite;\n";
echo "</script>\n";
echo "<script src='js/lib/jquery-2.0.3.min.js?nocache=asdfasdf'></script>\n";
......@@ -874,7 +874,7 @@ if (!$this_user) {
$aggregate_urn = "";
$sitemap = array();
if ($this_user && ($ISCLOUD || ISADMIN() || STUDLY())) {
if ($this_user) {
if (isset($formfields["sites"]) && is_array($formfields["sites"])) {
while (list($siteid, $am) = each($formfields["sites"])) {
if (array_key_exists($am, $am_array)) {
......
......@@ -67,7 +67,7 @@ function SPITFORM($formfields, $errors)
$activity = 0;
$ispp = 0;
$isadmin = (ISADMIN() ? 1 : 0);
$multisite = (ISADMIN() || STUDLY() ? 1 : 0);
$multisite = 1;
$version_uuid = "null";
$profile_uuid = "null";
......
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