Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for upgrade advisor #589

Merged
merged 1 commit into from
May 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Added metrics points for when there is no data. [#530]
* Fix to handle metrics and reporting bugs for when service body tracking fails [#530]
* Fix for how metrics service body id lookup happens. [#530]
* Fix for upgrade advisor regression. [#589]

### 4.0.4 (February 18, 2022)
* Fix for language fallback for volunteers. It will now correctly use the first language in `language_selections` if none are selected for each volunteer. Otherwise it will use `language`.
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/LegacyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function index(Request $request)
$path .= '/index.php';
}

return $this->renderPath($path, str_starts_with($request->path(), 'admin') || str_ends_with($request->path(), 'clear-session.php') ? 'text/html' : 'text/xml');
return $this->renderPath($path, str_starts_with($request->path(), 'admin') || str_ends_with($request->path(), 'clear-session.php') ? 'text/html' : str_ends_with($request->path(), 'upgrade-advisor.php') ? 'application/json' : 'text/xml');
}

public function msr($latitude, $longitude)
Expand Down
2 changes: 1 addition & 1 deletion legacy/_includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ private static function isThere($setting)
public static function getState($status = null, $message = null)
{
try {
$build = file_get_contents("../build.txt", false);
$build = file_get_contents("build.txt", false);
} catch (Exception $e) {
$build = $e->getMessage();
}
Expand Down