Lines Matching defs:rev2
21 protected $rev2; // timestamp of newer revision
54 * @param int $rev2 newer revision
57 public function compare($rev1, $rev2)
59 if ($rev2 < $rev1) [$rev1, $rev2] = [$rev2, $rev1];
61 $this->rev2 = (int)$this->changelog->traceCurrentRevision($rev2);
100 $this->rev2 = $this->changelog->currentRevision();
101 if ($this->rev2 <= $this->rev1) {
103 unset($this->rev1, $this->rev2);
107 // submit button with two checked boxes, eg. &do=diff&rev2[0]=#&rev2[1]=#
108 $revs = $INPUT->arr('rev2', []);
110 [$rev1, $rev2] = $revs;
111 if ($rev2 < $rev1) [$rev1, $rev2] = [$rev2, $rev1];
113 $this->rev2 = (int)$this->changelog->traceCurrentRevision($rev2);
117 if (!isset($this->rev1, $this->rev2)) {
118 $rev2 = $this->changelog->currentRevision();
119 if ($rev2 > $this->changelog->lastRevision()) {
126 $this->rev2 = $rev2;