Skip to content

Commit

Permalink
Update MediaDiff.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TherealperO committed Aug 4, 2022
1 parent 4d8dc0c commit 921c2ae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions inc/Ui/MediaDiff.php
Expand Up @@ -79,8 +79,13 @@ protected function preProcess()
// create revision info object for older and newer sides
// RevInfo1 : older, left side
// RevInfo2 : newer, right side
$this->RevInfo1 = new RevisionInfo($changelog->getRevisionInfo($this->rev1));
$this->RevInfo2 = new RevisionInfo($changelog->getRevisionInfo($this->rev2));

$changelogRev1 = $changelog->getRevisionInfo($this->rev1);
$changelogRev2 = $changelog->getRevisionInfo($this->rev2);
$changelogRev1['media'] = $changelogRev2['media'] = true;

$this->RevInfo1 = new RevisionInfo($changelogRev1);
$this->RevInfo2 = new RevisionInfo($changelogRev2);

$this->is_img = preg_match('/\.(jpe?g|gif|png)$/', $this->id);

Expand Down

0 comments on commit 921c2ae

Please sign in to comment.