Code Duplication    Length = 9-11 lines in 2 locations

includes/EditPage.php 1 location

@@ 2800-2810 (lines=11) @@
2797
				if ( $revision ) {
2798
					// Let sysop know that this will make private content public if saved
2799
2800
					if ( !$revision->userCan( Revision::DELETED_TEXT, $wgUser ) ) {
2801
						$wgOut->wrapWikiMsg(
2802
							"<div class='mw-warning plainlinks'>\n$1\n</div>\n",
2803
							'rev-deleted-text-permission'
2804
						);
2805
					} elseif ( $revision->isDeleted( Revision::DELETED_TEXT ) ) {
2806
						$wgOut->wrapWikiMsg(
2807
							"<div class='mw-warning plainlinks'>\n$1\n</div>\n",
2808
							'rev-deleted-text-view'
2809
						);
2810
					}
2811
2812
					if ( !$revision->isCurrent() ) {
2813
						$this->mArticle->setOldSubtitle( $revision->getId() );

includes/specials/SpecialUndelete.php 1 location

@@ 979-987 (lines=9) @@
976
		}
977
978
		if ( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
979
			if ( !$rev->userCan( Revision::DELETED_TEXT, $user ) ) {
980
				$out->wrapWikiMsg(
981
					"<div class='mw-warning plainlinks'>\n$1\n</div>\n",
982
				$rev->isDeleted( Revision::DELETED_RESTRICTED ) ?
983
					'rev-suppressed-text-permission' : 'rev-deleted-text-permission'
984
				);
985
986
				return;
987
			}
988
989
			$out->wrapWikiMsg(
990
				"<div class='mw-warning plainlinks'>\n$1\n</div>\n",