Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Fix create more then 2 universes #304

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions includes/pages/adm/ShowUniversePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,7 @@ function ShowUniversePage() {
$universeCount = count(Universe::availableUniverses());
// Check Multiuniverse Support
$ch = curl_init();
if($universeCount == 1)
{
curl_setopt($ch, CURLOPT_URL, PROTOCOL.HTTP_HOST.HTTP_BASE."uni".ROOT_UNI."/");
}
else
{
curl_setopt($ch, CURLOPT_URL, PROTOCOL.HTTP_HOST.HTTP_BASE);
}
curl_setopt($ch, CURLOPT_URL, PROTOCOL.HTTP_HOST.HTTP_BASE."uni".ROOT_UNI."/");
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
Expand Down Expand Up @@ -185,4 +178,4 @@ function ShowUniversePage() {
));

$template->show('UniversePage.tpl');
}
}