Code Duplication    Length = 11-15 lines in 2 locations

includes/EditPage.php 1 location

@@ 2482-2492 (lines=11) @@
2479
			}
2480
		}
2481
		# Give a notice if the user is editing a deleted/moved page...
2482
		if ( !$this->mTitle->exists() ) {
2483
			LogEventsList::showLogExtract( $wgOut, [ 'delete', 'move' ], $this->mTitle,
2484
				'',
2485
				[
2486
					'lim' => 10,
2487
					'conds' => [ "log_action != 'revision'" ],
2488
					'showIfEmpty' => false,
2489
					'msgKey' => [ 'recreate-moveddeleted-warn' ]
2490
				]
2491
			);
2492
		}
2493
	}
2494
2495
	/**

includes/page/ImagePage.php 1 location

@@ 583-597 (lines=15) @@
580
			}
581
		} else {
582
			# Image does not exist
583
			if ( !$this->getId() ) {
584
				# No article exists either
585
				# Show deletion log to be consistent with normal articles
586
				LogEventsList::showLogExtract(
587
					$out,
588
					[ 'delete', 'move' ],
589
					$this->getTitle()->getPrefixedText(),
590
					'',
591
					[ 'lim' => 10,
592
						'conds' => [ "log_action != 'revision'" ],
593
						'showIfEmpty' => false,
594
						'msgKey' => [ 'moveddeleted-notice' ]
595
					]
596
				);
597
			}
598
599
			if ( $wgEnableUploads && $user->isAllowed( 'upload' ) ) {
600
				// Only show an upload link if the user can upload