Page MenuHomePhabricator

D20162.diff
No OneTemporary

D20162.diff

diff --git a/src/view/control/AphrontCursorPagerView.php b/src/view/control/AphrontCursorPagerView.php
--- a/src/view/control/AphrontCursorPagerView.php
+++ b/src/view/control/AphrontCursorPagerView.php
@@ -99,9 +99,9 @@
return null;
}
- return $this->uri
- ->alter('before', null)
- ->alter('after', null);
+ return id(clone $this->uri)
+ ->removeQueryParam('after')
+ ->removeQueryParam('before');
}
public function getPrevPageURI() {
@@ -113,9 +113,9 @@
return null;
}
- return $this->uri
- ->alter('after', null)
- ->alter('before', $this->prevPageID);
+ return id(clone $this->uri)
+ ->removeQueryParam('after')
+ ->replaceQueryParam('before', $this->prevPageID);
}
public function getNextPageURI() {
@@ -127,9 +127,9 @@
return null;
}
- return $this->uri
- ->alter('after', $this->nextPageID)
- ->alter('before', null);
+ return id(clone $this->uri)
+ ->replaceQueryParam('after', $this->nextPageID)
+ ->removeQueryParam('before');
}
public function render() {

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 1:34 PM (11 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6926486
Default Alt Text
D20162.diff (1 KB)

Event Timeline