X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FArticle.php;h=ecbc59fa53dde49e5d5e449f9a6e7c95cca285a7;hb=ce356414d3615ef46c3b01318580fe16f2922a96;hp=a6afd8e5966a56e35ed41cbcf47739bd2ef04c77;hpb=da4dab226d5155b08bdc78ae2881798fd81541df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Article.php b/includes/Article.php index a6afd8e596..ecbc59fa53 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1201,10 +1201,15 @@ class Article implements Page { wfRunHooks( 'ShowMissingArticle', array( $this ) ); + // Give extensions a chance to hide their (unrelated) log entries + $logTypes = array( 'delete', 'move' ); + $conds = array( "log_action != 'revision'" ); + wfRunHooks( 'Article::MissingArticleConditions', array( &$conds, $logTypes ) ); + # Show delete and move logs - LogEventsList::showLogExtract( $outputPage, array( 'delete', 'move' ), $this->getTitle(), '', + LogEventsList::showLogExtract( $outputPage, $logTypes, $this->getTitle(), '', array( 'lim' => 10, - 'conds' => array( "log_action != 'revision'" ), + 'conds' => $conds, 'showIfEmpty' => false, 'msgKey' => array( 'moveddeleted-notice' ) ) );