From: Gabriel Wicke Date: Fri, 24 Mar 2006 16:53:32 +0000 (+0000) Subject: Fix category test routine, unlink two more dirs X-Git-Tag: 1.6.0~149 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=3bb3d8197368e25b2ce366891941d011442480d4;p=lhc%2Fweb%2Fwiklou.git Fix category test routine, unlink two more dirs --- diff --git a/maintenance/parserTests.inc b/maintenance/parserTests.inc index e4610505bd..35e68f6cf8 100644 --- a/maintenance/parserTests.inc +++ b/maintenance/parserTests.inc @@ -257,7 +257,9 @@ class ParserTest { if (preg_match('/\\bill\\b/i', $opts)) { $out = $this->tidy( implode( ' ', $output->getLanguageLinks() ) ); } else if (preg_match('/\\bcat\\b/i', $opts)) { - $out = $this->tidy ( implode( ' ', $output->getCategoryLinks() ) ); + global $wgOut; + $wgOut->addCategoryLinks($output->getCategories()); + $out = $this->tidy ( implode( ' ', $wgOut->getCategoryLinks() ) ); } $result = $this->tidy($result); @@ -497,6 +499,8 @@ class ParserTest { unlink( "$dir/3/3a/Foobar.jpg" ); rmdir( "$dir/3/3a" ); rmdir( "$dir/3" ); + @rmdir( "$dir/thumb/6/65" ); + @rmdir( "$dir/thumb/6" ); @unlink( "$dir/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" ); @rmdir( "$dir/thumb/3/3a/Foobar.jpg" );