From 753cc671ca3fed0e76324d7f87a002195a1c34c4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 15 Dec 2008 23:51:28 +0000 Subject: [PATCH] Fix bug where new image uploads would be reviewed but had "changes needing review" tag --- includes/ImagePage.php | 6 ++++++ includes/filerepo/LocalFile.php | 1 + 2 files changed, 7 insertions(+) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index e47df2215d..7fb33a5d88 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -22,6 +22,12 @@ class ImagePage extends Article { $this->dupes = null; $this->repo = null; } + + public function setFile( $file ) { + $this->displayImg = $file; + $this->img = $file; + $this->fileLoaded = true; + } protected function loadFile() { if( $this->fileLoaded ) { diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 0a4bfb64db..899fbd0a9e 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -890,6 +890,7 @@ class LocalFile extends File $descTitle = $this->getTitle(); $article = new ImagePage( $descTitle ); + $article->setFile( $this ); # Add the log entry $log = new LogPage( 'upload' ); -- 2.20.1