r103380 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103379‎ | r103380 | r103381 >
Date:20:54, 16 November 2011
Author:ialex
Status:ok
Tags:
Comment:
Per Aaron, fix for r102973: create directly a WikiFilePage object and call setFile() on it to restore previous behaviour
Modified paths:
  • /trunk/phase3/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalFile.php
@@ -1056,7 +1056,8 @@
10571057 }
10581058
10591059 $descTitle = $this->getTitle();
1060 - $wikiPage = WikiPage::factory( $descTitle );
 1060+ $wikiPage = new WikiFilePage( $descTitle );
 1061+ $wikiPage->setFile( $this );
10611062
10621063 # Add the log entry
10631064 $log = new LogPage( 'upload' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102973Updated remaining functions executing NewRevisionFromEditComplete hook to use...ialex12:40, 14 November 2011

Status & tagging log