Skip to content

Commit

Permalink
Update Recent.php
Browse files Browse the repository at this point in the history
Change to use $info['media'] instead of checking for dots in $ID to decide $info['mode'].
  • Loading branch information
TherealperO committed Aug 4, 2022
1 parent 35bad86 commit 3855b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/Ui/Recent.php
Expand Up @@ -155,7 +155,7 @@ protected function getRecents(&$first, &$hasNext)
*/
protected function checkCurrentRevision(array &$info)
{
$itemType = strrpos($info['id'], '.') ? 'media' : 'page';
$itemType = $info['mode'] = $info['media'] ? 'media' : 'page';
if ($itemType == 'page') {
$changelog = new PageChangelog($info['id']);
} else {
Expand Down

0 comments on commit 3855b15

Please sign in to comment.