Don't double wrap rollback links
authorjdlrobson <jdlrobson@gmail.com>
Tue, 23 Jul 2019 19:07:47 +0000 (12:07 -0700)
committerjdlrobson <jdlrobson@gmail.com>
Tue, 23 Jul 2019 19:07:47 +0000 (12:07 -0700)
Bug: T228766
Change-Id: Iaca54e1ceefc73815fe3d9898ca490b74d11dac6

includes/diff/DifferenceEngine.php

index 54cd9ca..37ec39a 100644 (file)
@@ -547,7 +547,8 @@ class DifferenceEngine extends ContextSource {
                                if ( $this->mNewRev->isCurrent() && $permissionManager->userCan(
                                        'rollback', $user, $this->mNewPage
                                ) ) {
-                                       $rollbackLink = Linker::generateRollback( $this->mNewRev, $this->getContext() );
+                                       $rollbackLink = Linker::generateRollback( $this->mNewRev, $this->getContext(),
+                                               [ 'noBrackets' ] );
                                        if ( $rollbackLink ) {
                                                $out->preventClickjacking();
                                                $rollback = "\u{00A0}\u{00A0}\u{00A0}" . $rollbackLink;