Use bracket-free, human-readable query URIs everywhere

Summary: See <http://fab.wmflabs.org/T88>. While this issue is on MW's side, these links are kind of ugly and have more readable alternate forms now. Update them to use proper modern forms.

Test Plan: See inlines.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9042
This commit is contained in:
epriestley
2014-05-10 11:37:38 -07:00
parent 997c8591b2
commit b64415c9b1
7 changed files with 15 additions and 37 deletions

View File

@@ -148,8 +148,8 @@ final class PhabricatorHomeMainController
'Nothing appears to be critically broken right now.');
}
$href = sprintf(
'/maniphest/?statuses[]=%s&priorities[]=%s#R',
$href = urisprintf(
'/maniphest/?statuses=%s&priorities=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$unbreak_now);
$title = pht('Unbreak Now!');
@@ -196,8 +196,8 @@ final class PhabricatorHomeMainController
}
$title = pht('Needs Triage');
$href = sprintf(
'/maniphest/?statuses[]=%s&priorities[]=%s&userProjects[]=%s#R',
$href = urisprintf(
'/maniphest/?statuses=%s&priorities=%s&userProjects=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$needs_triage,
$user->getPHID());