merge Maniacontrol official repository changes

This commit is contained in:
Beu
2025-01-23 19:33:22 +01:00
parent a6875cabc8
commit e6444a5a47
6 changed files with 17 additions and 7 deletions

View File

@ -23,7 +23,7 @@ class ManiaExchangeManager implements UsageInformationAble {
* Constants
* @deprecated SEARCH Constants
*/
//Search orders (prior parameter) https://api.mania-exchange.com/documents/enums#orderings
//Search orders (prior parameter) https://api2.mania.exchange/documents/enums#orderings
const SEARCH_ORDER_NONE = -1;
const SEARCH_ORDER_TRACK_NAME = 0;
const SEARCH_ORDER_AUTHOR = 1;
@ -190,7 +190,7 @@ class ManiaExchangeManager implements UsageInformationAble {
}
// compile search URL
$url = "https://{$titlePrefix}/api/maps/get_map_info/multi/{$string}";
$url = 'https://' . $titlePrefix . ".mania.exchange/api/maps/get_map_info/multi/{$string}";
/*if ($key = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MX_KEY)) {
$url .= "&key=" . $key;
@ -300,7 +300,7 @@ class ManiaExchangeManager implements UsageInformationAble {
}
// compile search URL
$url = "https://{$titlePrefix}/api/maps/get_map_info/multi/{$mapId}";
$url = 'https://' . $titlePrefix . '.mania.exchange/' . 'api/maps/get_map_info/multi/' . $mapId;
/*if ($key = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MX_KEY)) {
$url .= "&key=" . $key;