1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Whitespace parameter on Show Raw File is useless

Test Plan: Show Raw File

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1600
This commit is contained in:
vrana 2012-02-10 22:43:13 -08:00
parent 63fbd5db04
commit 95feb31fbf

View file

@ -123,11 +123,7 @@ class DifferentialChangesetListView extends AphrontView {
$detail_button = null; $detail_button = null;
if ($this->standaloneViews) { if ($this->standaloneViews) {
$detail_uri = new PhutilURI($this->renderURI); $detail_uri = new PhutilURI($this->renderURI);
$detail_uri->setQueryParams( $detail_uri->setQueryParams(array('ref' => $ref));
array(
'ref' => $ref,
'whitespace' => $this->whitespace,
));
$diffusion_uri = null; $diffusion_uri = null;
if ($repository) { if ($repository) {
@ -136,7 +132,8 @@ class DifferentialChangesetListView extends AphrontView {
} }
$meta = array( $meta = array(
'detailURI' => (string)$detail_uri, 'detailURI' =>
(string)$detail_uri->alter('whitespace', $this->whitespace),
'diffusionURI' => $diffusion_uri, 'diffusionURI' => $diffusion_uri,
'containerID' => $detail->getID(), 'containerID' => $detail->getID(),
); );
@ -167,7 +164,7 @@ class DifferentialChangesetListView extends AphrontView {
array( array(
'class' => 'button small grey', 'class' => 'button small grey',
'meta' => $meta, 'meta' => $meta,
'href' => $detail_uri, 'href' => $meta['detailURI'],
'target' => '_blank', 'target' => '_blank',
'sigil' => 'differential-view-options', 'sigil' => 'differential-view-options',
), ),