Skip to content
Snippets Groups Projects
Commit cf5a09eb authored by Demian Katz's avatar Demian Katz
Browse files

Updated comments to explain broken ++/--.

parent 7056f429
No related merge requests found
...@@ -226,7 +226,7 @@ class ResultScroller extends AbstractPlugin ...@@ -226,7 +226,7 @@ class ResultScroller extends AbstractPlugin
if ($pos !== false) { if ($pos !== false) {
// decrease the page in the session because // decrease the page in the session because
// we're now sliding into the previous page // we're now sliding into the previous page
// (for some reason, -- doesn't work here) // (-- doesn't work on ArrayObjects)
$this->data->page = $this->data->page - 1; $this->data->page = $this->data->page - 1;
// shift pages to the right // shift pages to the right
...@@ -264,7 +264,7 @@ class ResultScroller extends AbstractPlugin ...@@ -264,7 +264,7 @@ class ResultScroller extends AbstractPlugin
if ($pos !== false) { if ($pos !== false) {
// increase the page in the session because // increase the page in the session because
// we're now sliding into the next page // we're now sliding into the next page
// (for some reason, ++ doesn't work here) // (++ doesn't work on ArrayObjects)
$this->data->page = $this->data->page + 1; $this->data->page = $this->data->page + 1;
// shift pages to the left // shift pages to the left
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment