Code Duplication    Length = 9-11 lines in 2 locations

includes/specials/SpecialEditTags.php 1 location

@@ 437-445 (lines=9) @@
434
	/**
435
	 * Report that the submit operation succeeded
436
	 */
437
	protected function success() {
438
		$this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) );
439
		$this->getOutput()->wrapWikiMsg( "<div class=\"successbox\">\n$1\n</div>",
440
			'tags-edit-success' );
441
		$this->wasSaved = true;
442
		$this->revList->reloadFromMaster();
443
		$this->reason = ''; // no need to spew the reason back at the user
444
		$this->showForm();
445
	}
446
447
	/**
448
	 * Report that the submit operation failed

includes/specials/SpecialRevisiondelete.php 1 location

@@ 619-629 (lines=11) @@
616
	/**
617
	 * Report that the submit operation succeeded
618
	 */
619
	protected function success() {
620
		// Messages: revdelete-success, logdelete-success
621
		$this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) );
622
		$this->getOutput()->wrapWikiMsg(
623
			"<div class=\"successbox\">\n$1\n</div>",
624
			$this->typeLabels['success']
625
		);
626
		$this->wasSaved = true;
627
		$this->revDelList->reloadFromMaster();
628
		$this->showForm();
629
	}
630
631
	/**
632
	 * Report that the submit operation failed