r79259 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79258‎ | r79259 | r79260 >
Date:16:30, 30 December 2010
Author:ialex
Status:deferred
Tags:
Comment:
MediaWiki::articleFromTitle() is static
Modified paths:
  • /trunk/extensions/WebDAV/WebDavServer.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WebDAV/WebDavServer.php
@@ -334,8 +334,7 @@
335335 }
336336 }
337337
338 - $mediaWiki = new MediaWiki();
339 - $article = $mediaWiki->articleFromTitle( $title );
 338+ $article = MediaWiki::articleFromTitle( $title );
340339
341340 $rawPage = new RawPage( $article );
342341
@@ -396,8 +395,7 @@
397396 $title = Title::newMainPage();
398397 }
399398
400 - $mediaWiki = new MediaWiki();
401 - $article = $mediaWiki->articleFromTitle( $title );
 399+ $article = MediaWiki::articleFromTitle( $title );
402400
403401 # Must check if article exists to avoid 500 Internal Server Error
404402
@@ -436,8 +434,7 @@
437435 return;
438436 }
439437
440 - $mediaWiki = new MediaWiki();
441 - $article = $mediaWiki->articleFromTitle( $title );
 438+ $article = MediaWiki::articleFromTitle( $title );
442439
443440 if ( ( $handle = $this->openRequestBody() ) === false ) {
444441 return;

Status & tagging log