r13306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13305‎ | r13306 | r13307 >
Date:16:53, 24 March 2006
Author:gabrielwicke
Status:old
Tags:
Comment:
Fix category test routine, unlink two more dirs
Modified paths:
  • /trunk/phase3/maintenance/parserTests.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.inc
@@ -257,7 +257,9 @@
258258 if (preg_match('/\\bill\\b/i', $opts)) {
259259 $out = $this->tidy( implode( ' ', $output->getLanguageLinks() ) );
260260 } else if (preg_match('/\\bcat\\b/i', $opts)) {
261 - $out = $this->tidy ( implode( ' ', $output->getCategoryLinks() ) );
 261+ global $wgOut;
 262+ $wgOut->addCategoryLinks($output->getCategories());
 263+ $out = $this->tidy ( implode( ' ', $wgOut->getCategoryLinks() ) );
262264 }
263265
264266 $result = $this->tidy($result);
@@ -497,6 +499,8 @@
498500 unlink( "$dir/3/3a/Foobar.jpg" );
499501 rmdir( "$dir/3/3a" );
500502 rmdir( "$dir/3" );
 503+ @rmdir( "$dir/thumb/6/65" );
 504+ @rmdir( "$dir/thumb/6" );
501505
502506 @unlink( "$dir/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" );
503507 @rmdir( "$dir/thumb/3/3a/Foobar.jpg" );

Status & tagging log