Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14412898
D20162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20162.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20162: Fix some "URI->alter(X, null)" callsites
Attached
Detach File
Event Timeline
Log In to Comment