|
@@ -31,10 +31,10 @@ |
|
|
block discarded – undo |
|
31
|
31
|
// |
|
32
|
32
|
function show_platforms() { |
|
33
|
33
|
$xmlFragment = unserialize(get_cached_data(3600, "project_config_platform_xml")); |
|
34
|
|
- if ($xmlFragment==false){ |
|
|
34
|
+ if ($xmlFragment==false) { |
|
35
|
35
|
$platforms = BoincDb::get()->enum_fields("platform, DBNAME.app_version, DBNAME.app", "BoincPlatform", "platform.name, platform.user_friendly_name, plan_class", "app_version.platformid = platform.id and app_version.appid = app.id and app_version.deprecated=0 and app.deprecated=0 group by platform.name, plan_class", ""); |
|
36
|
36
|
$xmlFragment = " <platforms>"; |
|
37
|
|
- foreach ($platforms as $platform){ |
|
|
37
|
+ foreach ($platforms as $platform) { |
|
38
|
38
|
$xmlFragment .= " |
|
39
|
39
|
<platform> |
|
40
|
40
|
<platform_name>$platform->name</platform_name> |
Please login to merge, or discard this patch.