dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a19a4cc
)
Fix category test routine, unlink two more dirs
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Fri, 24 Mar 2006 16:53:32 +0000
(16:53 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Fri, 24 Mar 2006 16:53:32 +0000
(16:53 +0000)
maintenance/parserTests.inc
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.inc
b/maintenance/parserTests.inc
index
e461050
..
35e68f6
100644
(file)
--- 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)) {
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);
}
$result = $this->tidy($result);
@@
-497,6
+499,8
@@
class ParserTest {
unlink( "$dir/3/3a/Foobar.jpg" );
rmdir( "$dir/3/3a" );
rmdir( "$dir/3" );
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" );
@unlink( "$dir/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" );
@rmdir( "$dir/thumb/3/3a/Foobar.jpg" );