From: Aaron Schulz Date: Sun, 25 Mar 2007 23:20:48 +0000 (+0000) Subject: *Document PageHistoryBeforeList and PageHistoryLineEnding and remove cruft variable... X-Git-Tag: 1.31.0-rc.0~53614 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=446f2d6cab636c7bc1faa47502888162cb882c58;p=lhc%2Fweb%2Fwiklou.git *Document PageHistoryBeforeList and PageHistoryLineEnding and remove cruft variable from former --- 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