[moodle] / moodle / lib / weblib.php Repository:

Diff of /moodle/lib/weblib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1341, Thu Oct 1 02:13:27 2009 WST revision 1.1342, Thu Oct 1 10:31:42 2009 WST

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

# Line 502  Line 502 
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

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7