Manual:Hooks/DifferenceEngineOldHeaderNoOldRev

DifferenceEngineOldHeaderNoOldRev
Available from version 1.29.0 (Gerrit change 298026)
Change the $oldHeader variable in cases when there is no old revision
Define function:
public static function onDifferenceEngineOldHeaderNoOldRev( &$oldHeader ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"DifferenceEngineOldHeaderNoOldRev": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineOldHeaderNoOldRev"
	}
}
Called from: File(s): diff/DifferenceEngine.php
Function(s): showDiffPage
Interface: DifferenceEngineOldHeaderNoOldRevHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DifferenceEngineOldHeaderNoOldRev extensions.


Details

edit
  • &$oldHeader: empty string by default