Diff of /moodle/lib/weblib.php
Parent Directory
|
Revision Log
|
Patch
|
By samhemelryk:
simpletest-navigation MDL-20395 Fixed up regressions in the simpletest caused by recent changes to upgrades to navigation lib.
Also fixed issue whereby PAGE->set_url was being called by testdeprecatedlib but not being reset to the original value causing several flow on errors through simpletests
|
| 502 |
* @return boolean |
* @return boolean |
| 503 |
*/ |
*/ |
| 504 |
public function compare(moodle_url $url, $matchtype = URL_MATCH_EXACT) { |
public function compare(moodle_url $url, $matchtype = URL_MATCH_EXACT) { |
| 505 |
|
|
| 506 |
|
// Set path to / if it is not set |
| 507 |
|
if ($this->path == '') { |
| 508 |
|
$this->path = '/'; |
| 509 |
|
} |
| 510 |
|
if ($url->path == '') { |
| 511 |
|
$url->path = '/'; |
| 512 |
|
} |
| 513 |
|
|
| 514 |
$baseself = $this->out(true); |
$baseself = $this->out(true); |
| 515 |
$baseother = $url->out(true); |
$baseother = $url->out(true); |
| 516 |
|
|
|
|
Legend:
| Removed from v.1.1341 |
|
| changed lines |
| |
Added in v.1.1342 |
|
|