From 7f8a5a823bb8efb6a9b131195af4cbffbb21e815 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 4 Sep 2008 20:38:08 +0000 Subject: [PATCH] * Document OutputPageCheckLastModified hook * Added includes/diff/ to the list of paths in maintenance/findhooks.php --- docs/hooks.txt | 3 +++ maintenance/findhooks.php | 1 + 2 files changed, 4 insertions(+) diff --git a/docs/hooks.txt b/docs/hooks.txt index 44941eecf5..cae305341f 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -920,6 +920,9 @@ the resulting HTML is about to be displayed. $parserOutput: the parserOutput (object) that corresponds to the page $text: the text that will be displayed, in HTML (string) +'OutputPageCheckLastModified': when checking if the page has been modified since the last visit +&$modifiedTimes: array of timestamps, the following keys are set: page, user, epoch + 'OutputPageParserOutput': after adding a parserOutput to $wgOut $out: OutputPage instance (object) $parserOutput: parserOutput instance being added in $out diff --git a/maintenance/findhooks.php b/maintenance/findhooks.php index 7a2ba53f66..d7cad253c6 100644 --- a/maintenance/findhooks.php +++ b/maintenance/findhooks.php @@ -31,6 +31,7 @@ $pathinc = array( $IP.'/includes/', $IP.'/includes/api/', $IP.'/includes/db/', + $IP.'/includes/diff/', $IP.'/includes/filerepo/', $IP.'/includes/parser/', $IP.'/includes/specials/', -- 2.20.1