From: Magnus Manske Date: Thu, 27 Jul 2006 18:51:52 +0000 (+0000) Subject: Two new hooks by Ryan Lane for the StableVersions extension X-Git-Tag: 1.31.0-rc.0~56132 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=00e01d2d3c96715d2f531fa64db3972e15cdca66;p=lhc%2Fweb%2Fwiklou.git Two new hooks by Ryan Lane for the StableVersions extension --- diff --git a/includes/Article.php b/includes/Article.php index 738fb0fc59..a30f17f14a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -719,6 +719,7 @@ class Article { $outputDone = false; if ( $pcache ) { if ( $wgOut->tryParserCache( $this, $wgUser ) ) { + wfRunHooks( 'ArticleViewHeader', array( &$this ) ); $outputDone = true; } } @@ -2180,6 +2181,10 @@ class Article { function setOldSubtitle( $oldid=0 ) { global $wgLang, $wgOut, $wgUser; + if ( !wfRunHooks( 'DisplayOldSubtitle', array(&$this, &$oldid) ) ) { + return; + } + $revision = Revision::newFromId( $oldid ); $current = ( $oldid == $this->mLatest );