From: <var...@us...> - 2015-12-10 17:42:10
|
Revision: 9738 http://sourceforge.net/p/phpwiki/code/9738 Author: vargenau Date: 2015-12-10 17:42:08 +0000 (Thu, 10 Dec 2015) Log Message: ----------- Make function merged public Modified Paths: -------------- trunk/lib/diff3.php Modified: trunk/lib/diff3.php =================================================================== --- trunk/lib/diff3.php 2015-12-10 17:40:05 UTC (rev 9737) +++ trunk/lib/diff3.php 2015-12-10 17:42:08 UTC (rev 9738) @@ -21,14 +21,16 @@ $this->final2 = $final2 ? $final2 : array(); } - protected function merged() + public function merged() { if (!isset($this->_merged)) { if ($this->final1 === $this->final2) $this->_merged = &$this->final1; elseif ($this->final1 === $this->orig) - $this->_merged = &$this->final2; elseif ($this->final2 === $this->orig) - $this->_merged = &$this->final1; else + $this->_merged = &$this->final2; + elseif ($this->final2 === $this->orig) + $this->_merged = &$this->final1; + else $this->_merged = false; } return $this->_merged; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |