From 446f2d6cab636c7bc1faa47502888162cb882c58 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 25 Mar 2007 23:20:48 +0000 Subject: [PATCH] *Document PageHistoryBeforeList and PageHistoryLineEnding and remove cruft variable from former --- docs/hooks.txt | 7 +++++++ includes/PageHistory.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index 86f016b1fe..75dddaa293 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -422,6 +422,13 @@ 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) +'PageHistoryBeforeList': When a history page list is about to be contructed. +$article: the article that the history is loading for + +'PageHistoryLineEnding' : right before the end
  • is added to a histroy line +$row: the revision row for this line +$s: the string representing this parsed line + 'PageRenderingHash': alter the parser cache option hash key A parser extension which depends on user options should install this hook and append its values to the key. diff --git a/includes/PageHistory.php b/includes/PageHistory.php index ffb326d77f..938eed0a2c 100644 --- a/includes/PageHistory.php +++ b/includes/PageHistory.php @@ -100,7 +100,7 @@ class PageHistory { return; } - wfRunHooks( 'BeginPageHistoryBeforeList', array( &$this , &$s ) ); + wfRunHooks( 'PageHistoryBeforeList', array( &$this->mArticle ) ); /** * Do the list -- 2.20.1