diff --git a/includes/pages/adm/ShowUniversePage.php b/includes/pages/adm/ShowUniversePage.php index 16189ed43..963fae26d 100644 --- a/includes/pages/adm/ShowUniversePage.php +++ b/includes/pages/adm/ShowUniversePage.php @@ -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".($universeCount + 1)."/"); curl_setopt($ch, CURLOPT_HTTPGET, true); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); @@ -185,4 +178,4 @@ function ShowUniversePage() { )); $template->show('UniversePage.tpl'); -} \ No newline at end of file +}