X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fpage%2FWikiPage.php;h=b411855aec329ecbb787f1206034f5acfc0ad8fb;hp=ac9cd84403e8f3f44c6d5d283b95aa26e11d0246;hb=08edb27f6ce31c676660a4ef89b87da79bde2cc2;hpb=a84faa932f5a7b985b5c34e252918fc15d840ebe diff --git a/includes/page/WikiPage.php b/includes/page/WikiPage.php index ac9cd84403..b411855aec 100644 --- a/includes/page/WikiPage.php +++ b/includes/page/WikiPage.php @@ -1624,6 +1624,11 @@ class WikiPage implements Page, IDBAccessObject { $tags[] = $tag; } + // Check for undo tag + if ( $undidRevId !== 0 && in_array( 'mw-undo', ChangeTags::getSoftwareTags() ) ) { + $tags[] = 'mw-undo'; + } + // Provide autosummaries if summary is not provided and autosummaries are enabled if ( $wgUseAutomaticEditSummaries && ( $flags & EDIT_AUTOSUMMARY ) && $summary == '' ) { $summary = $handler->getAutosummary( $old_content, $content, $flags );